Skip to content

Commit 7ee6d30

Browse files
committed
feat: add artifact verification inputs/outputs and @actions/glob dependency
1 parent 0e6382a commit 7ee6d30

4 files changed

Lines changed: 80 additions & 6 deletions

File tree

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,3 +12,4 @@ dist/**/*.d.ts.map
1212

1313
# Local tool directories
1414
.deepeval/
15+
.flow/

action.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ inputs:
3939
description: 'GitHub token used to post the PR comment (required when post-pr-comment is true)'
4040
required: false
4141
default: ''
42+
artifact-paths:
43+
description: 'Glob patterns for artifact files to verify, one per line (e.g., "dist/*.tar.gz")'
44+
required: false
45+
default: ''
46+
artifact-attestation-dir:
47+
description: 'Directory containing .auths.json attestation files (default: alongside artifacts)'
48+
required: false
49+
default: ''
50+
fail-on-unattested:
51+
description: 'Fail the action if any artifact lacks a valid attestation'
52+
required: false
53+
default: 'true'
4254

4355
outputs:
4456
verified:
@@ -51,6 +63,10 @@ outputs:
5163
description: 'Number of commits that passed verification'
5264
failed:
5365
description: 'Number of commits that failed verification'
66+
artifacts-verified:
67+
description: 'Whether all artifacts were verified (true/false)'
68+
artifact-results:
69+
description: 'JSON array of per-artifact verification results'
5470

5571
runs:
5672
using: 'node20'

package-lock.json

Lines changed: 62 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"@actions/github": "^6.0.0",
2424
"@actions/io": "^1.1.3",
2525
"@actions/cache": "^3.2.4",
26+
"@actions/glob": "^0.5.0",
2627
"@actions/tool-cache": "^2.0.1"
2728
},
2829
"devDependencies": {

0 commit comments

Comments
 (0)