Skip to content

Commit f213f0c

Browse files
authored
Merge pull request #175 from actions/conorsloan/update-attest-package
Update @actions/attest dependency and send Attestations API header
2 parents 7af620c + 8c99313 commit f213f0c

4 files changed

Lines changed: 32 additions & 10 deletions

File tree

dist/index.js

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

package-lock.json

Lines changed: 4 additions & 4 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 & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@
6767
]
6868
},
6969
"dependencies": {
70-
"@actions/attest": "^1.3.1",
70+
"@actions/attest": "^1.4.0",
7171
"@actions/core": "^1.10.1",
7272
"@actions/exec": "^1.1.1",
7373
"@actions/github": "^6.0.0",

src/main.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,9 @@ async function generateAttestation(
128128
token: options.token,
129129
sigstore: 'github',
130130
// Always store the attestation using the GitHub Attestations API
131-
skipWrite: false
131+
skipWrite: false,
132+
// Identify the attestation to our API as an Immutable Action
133+
headers: { 'X-GitHub-Publish-Action': subjectName }
132134
})
133135
}
134136

0 commit comments

Comments
 (0)