Compare commits

..

3 Commits

Author SHA1 Message Date
Brian DeHamer c074443f1a pin actions/attest reference by commit sha (#493)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-03-05 11:07:49 -08:00
Brian DeHamer bd77c07785 bump predicate from 1.1.4 to 1.1.5 (#485)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-02-27 06:53:28 -08:00
Brian DeHamer 1176ef5569 bump @actions/attest from 1.5.0 to 1.6.0 (#484)
Signed-off-by: Brian DeHamer <bdehamer@github.com>
2025-02-27 06:44:35 -08:00
5 changed files with 14 additions and 16 deletions
+2 -2
View File
@@ -7,7 +7,7 @@ exports[`main when a non-default OIDC issuer is used successfully run main 1`] =
"externalParameters": { "externalParameters": {
"workflow": { "workflow": {
"path": ".github/workflows/main.yml", "path": ".github/workflows/main.yml",
"ref": "main", "ref": "refs/heads/main",
"repository": "https://example-01.ghe.com/owner/repo", "repository": "https://example-01.ghe.com/owner/repo",
}, },
}, },
@@ -46,7 +46,7 @@ exports[`main when the default OIDC issuer is used successfully run main 1`] = `
"externalParameters": { "externalParameters": {
"workflow": { "workflow": {
"path": ".github/workflows/main.yml", "path": ".github/workflows/main.yml",
"ref": "main", "ref": "refs/heads/main",
"repository": "https://github.com/owner/repo", "repository": "https://github.com/owner/repo",
}, },
}, },
+2 -2
View File
@@ -62,9 +62,9 @@ outputs:
runs: runs:
using: 'composite' using: 'composite'
steps: steps:
- uses: actions/attest-build-provenance/predicate@36fa7d009e22618ca7cd599486979b8150596c74 # predicate@1.1.4 - uses: actions/attest-build-provenance/predicate@1176ef556905f349f669722abf30bce1a6e16e01 # predicate@1.1.5
id: generate-build-provenance-predicate id: generate-build-provenance-predicate
- uses: actions/attest@v2.2.1 - uses: actions/attest@a63cfcc7d1aab266ee064c58250cfc2c7d07bc31 # v2.2.1
id: attest id: attest
with: with:
subject-path: ${{ inputs.subject-path }} subject-path: ${{ inputs.subject-path }}
Generated Vendored
+2 -4
View File
@@ -377,11 +377,9 @@ const buildSLSAProvenancePredicate = (issuer) => __awaiter(void 0, void 0, void
// Split just the path and ref from the workflow string. // Split just the path and ref from the workflow string.
// owner/repo/.github/workflows/main.yml@main => // owner/repo/.github/workflows/main.yml@main =>
// .github/workflows/main.yml, main // .github/workflows/main.yml, main
const [workflowPath, ...workflowRefChunks] = claims.workflow_ref const [workflowPath] = claims.workflow_ref
.replace(`${claims.repository}/`, '') .replace(`${claims.repository}/`, '')
.split('@'); .split('@');
// Handle case where tag contains `@` (e.g: when using changesets in a monorepo context),
const workflowRef = workflowRefChunks.join('@');
return { return {
type: SLSA_PREDICATE_V1_TYPE, type: SLSA_PREDICATE_V1_TYPE,
params: { params: {
@@ -389,7 +387,7 @@ const buildSLSAProvenancePredicate = (issuer) => __awaiter(void 0, void 0, void
buildType: GITHUB_BUILD_TYPE, buildType: GITHUB_BUILD_TYPE,
externalParameters: { externalParameters: {
workflow: { workflow: {
ref: workflowRef, ref: claims.ref,
repository: `${serverURL}/${claims.repository}`, repository: `${serverURL}/${claims.repository}`,
path: workflowPath path: workflowPath
} }
+6 -6
View File
@@ -1,15 +1,15 @@
{ {
"name": "actions/attest-build-provenance", "name": "actions/attest-build-provenance",
"version": "1.1.4", "version": "1.1.5",
"lockfileVersion": 3, "lockfileVersion": 3,
"requires": true, "requires": true,
"packages": { "packages": {
"": { "": {
"name": "actions/attest-build-provenance", "name": "actions/attest-build-provenance",
"version": "1.1.4", "version": "1.1.5",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/attest": "^1.5.0", "@actions/attest": "^1.6.0",
"@actions/core": "^1.11.1" "@actions/core": "^1.11.1"
}, },
"devDependencies": { "devDependencies": {
@@ -34,9 +34,9 @@
} }
}, },
"node_modules/@actions/attest": { "node_modules/@actions/attest": {
"version": "1.5.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/@actions/attest/-/attest-1.5.0.tgz", "resolved": "https://registry.npmjs.org/@actions/attest/-/attest-1.6.0.tgz",
"integrity": "sha512-KIalYPhJu0/6LOhT+Bhw0GncresPCiY1onLq8n0whjoJX0/M7UQmgXkn1ioQnNrkzEhcs6wVKwylusbMwTOX0g==", "integrity": "sha512-D+VcLqUImA7Gr5qPQrRGvNUJKzP67IHV3/ofF5QBpLqe3Vih3hb74k9ZtjHXamiZNVZi2Wkphj8yTi4/xiWkwQ==",
"license": "MIT", "license": "MIT",
"dependencies": { "dependencies": {
"@actions/core": "^1.11.1", "@actions/core": "^1.11.1",
+2 -2
View File
@@ -1,7 +1,7 @@
{ {
"name": "actions/attest-build-provenance", "name": "actions/attest-build-provenance",
"description": "Generate signed build provenance attestations", "description": "Generate signed build provenance attestations",
"version": "1.1.4", "version": "1.1.5",
"author": "", "author": "",
"private": true, "private": true,
"homepage": "https://github.com/actions/attest-build-provenance", "homepage": "https://github.com/actions/attest-build-provenance",
@@ -70,7 +70,7 @@
] ]
}, },
"dependencies": { "dependencies": {
"@actions/attest": "^1.5.0", "@actions/attest": "^1.6.0",
"@actions/core": "^1.11.1" "@actions/core": "^1.11.1"
}, },
"devDependencies": { "devDependencies": {