@base-attribution-os/github-action 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. package/LICENSE +21 -0
  2. package/action.yml +63 -0
  3. package/dist/index.cjs +230934 -0
  4. package/package.json +26 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 horn111
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/action.yml ADDED
@@ -0,0 +1,63 @@
1
+ name: "Base Attribution OS"
2
+ description: "Fail pull requests when Base Builder Code attribution is missing from transaction code."
3
+ author: "horn111"
4
+ branding:
5
+ icon: "check-circle"
6
+ color: "blue"
7
+ inputs:
8
+ builder-code:
9
+ description: "Expected Builder Code(s), comma-separated. Optional when bao.config.json exists."
10
+ required: false
11
+ path:
12
+ description: "Repository root to scan."
13
+ required: false
14
+ default: "."
15
+ paths:
16
+ description: "Comma-separated subpaths to scan."
17
+ required: false
18
+ default: ""
19
+ config:
20
+ description: "Path to a BAO JSON config file."
21
+ required: false
22
+ default: "bao.config.json"
23
+ profile:
24
+ description: "Scanner profile: local reports findings without failing by default, ci fails obvious missing attribution, strict requires the expected Builder Code in candidate files."
25
+ required: false
26
+ default: "ci"
27
+ fail-on-missing:
28
+ description: "Override the selected profile's default failure behavior."
29
+ required: false
30
+ changed-only:
31
+ description: "Scan files changed from the PR base ref instead of the full project."
32
+ required: false
33
+ default: "false"
34
+ base-ref:
35
+ description: "Git ref used by changed-only. Defaults to the pull request base branch."
36
+ required: false
37
+ default: ""
38
+ baseline:
39
+ description: "Path to an attribution findings baseline."
40
+ required: false
41
+ default: ""
42
+ sarif-output:
43
+ description: "Optional path for a SARIF report, for example bao.sarif."
44
+ required: false
45
+ default: ""
46
+ outputs:
47
+ checked-files:
48
+ description: "Number of source files checked."
49
+ transaction-paths:
50
+ description: "Number of transaction paths detected."
51
+ protected-paths:
52
+ description: "Number of paths with verified attribution evidence."
53
+ coverage:
54
+ description: "Percentage of protected transaction paths."
55
+ profile:
56
+ description: "Scanner profile used."
57
+ findings:
58
+ description: "JSON array of non-protected transaction paths."
59
+ sarif-file:
60
+ description: "Absolute path to the generated SARIF report."
61
+ runs:
62
+ using: "node24"
63
+ main: "dist/index.cjs"