Skip to content

Commit 155784b

Browse files
Merge branch 'main' into patch-1
2 parents 17aff54 + 9255e11 commit 155784b

11 files changed

Lines changed: 16 additions & 43 deletions

File tree

.github/workflows/builder_container-based_slsa3.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -598,7 +598,7 @@ jobs:
598598
path: "${{ needs.provenance.outputs.provenance-name }}"
599599

600600
- name: Upload provenance new tag
601-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
601+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
602602
if: startsWith(github.ref, 'refs/tags/') && inputs.upload-tag-name == ''
603603
id: release-new-tags
604604
with:
@@ -609,7 +609,7 @@ jobs:
609609
draft: ${{ inputs.draft-release }}
610610

611611
- name: Upload provenance tag name
612-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
612+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
613613
if: inputs.upload-tag-name != ''
614614
with:
615615
prerelease: ${{ inputs.prerelease }}

.github/workflows/builder_go_slsa3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@ jobs:
399399
sha256: "${{ needs.provenance.outputs.go-provenance-sha256 }}"
400400

401401
- name: Upload provenance
402-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
402+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
403403
with:
404404
tag_name: ${{ inputs.upload-tag-name }}
405405
prerelease: ${{ inputs.prerelease }}

.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ jobs:
5959

6060
# Initializes the CodeQL tools for scanning.
6161
- name: Initialize CodeQL
62-
uses: github/codeql-action/init@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
62+
uses: github/codeql-action/init@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
6363
with:
6464
languages: ${{ matrix.language }}
6565
# If you wish to specify custom queries, you can do so here or in a config file.
@@ -72,7 +72,7 @@ jobs:
7272
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
7373
# If this step fails, then you should remove it and run the build manually (see below)
7474
- name: Autobuild
75-
uses: github/codeql-action/autobuild@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
75+
uses: github/codeql-action/autobuild@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
7676

7777
# Command-line programs to run using the OS shell.
7878
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
@@ -85,7 +85,7 @@ jobs:
8585
# ./location_of_script_within_repo/buildscript.sh
8686

8787
- name: Perform CodeQL Analysis
88-
uses: github/codeql-action/analyze@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
88+
uses: github/codeql-action/analyze@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
8989

9090
# NOTE: Checks that the matrix job above completes successfully.
9191
# This is necessary because the matrix strategy generates new jobs with

.github/workflows/generator_container_slsa3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,7 @@ jobs:
165165
service_account: ${{ inputs.gcp-service-account }}
166166

167167
- id: cosign-install
168-
uses: sigstore/cosign-installer@3454372f43399081ed03b604cb2d021dabca52bb # v3.8.2
168+
uses: sigstore/cosign-installer@398d4b0eeef1380460a10c8013a76f728fb906ac # v3.9.1
169169
with:
170170
cosign-release: v2.2.3
171171
continue-on-error: true

.github/workflows/generator_generic_slsa3.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,7 @@ jobs:
285285
sha256: "${{ needs.generator.outputs.provenance-sha256 }}"
286286

287287
- name: Upload provenance
288-
uses: softprops/action-gh-release@da05d552573ad5aba039eaac05058a918a7bf631 # v2.2.2
288+
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8 # v2.3.2
289289
id: release
290290
with:
291291
draft: ${{ inputs.draft-release }}

.github/workflows/schedule.issue-reopener.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,4 @@ jobs:
2929
steps:
3030
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3131
- name: Issue Reopener
32-
uses: ianlewis/todo-issue-reopener@8fbb85e63a9f9b6a4d92d5422cda6a55dfbd266d # v1.6.0
32+
uses: ianlewis/todo-issue-reopener@05ca1b2493e450e1cc464bb25e0fa735ae8e4a00 # v1.7.0

.github/workflows/scorecards.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
persist-credentials: false
4545

4646
- name: "Run analysis"
47-
uses: ossf/scorecard-action@f49aabe0b5af0936a0987cfb85d86b75731b0186 # v2.4.1
47+
uses: ossf/scorecard-action@05b42c624433fc40578a4040d5cf5e36ddca8cde # v2.4.2
4848
with:
4949
results_file: results.sarif
5050
results_format: sarif
@@ -71,6 +71,6 @@ jobs:
7171

7272
# Upload the results to GitHub's code scanning dashboard.
7373
- name: "Upload to code-scanning"
74-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
74+
uses: github/codeql-action/upload-sarif@ce28f5bb42b7a9f2c824e633a3f6ee835bab6858 # v3.29.0
7575
with:
7676
sarif_file: results.sarif

actions/delegator/setup-generic/dist/index.js

Lines changed: 1 addition & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -69,18 +69,6 @@ const tscommon = __importStar(__nccwpck_require__(3945));
6969
function run() {
7070
return __awaiter(this, void 0, void 0, function* () {
7171
try {
72-
/* Test locally:
73-
$ env INPUT_SLSA-WORKFLOW-RECIPIENT="laurentsimon/slsa-delegated-tool" \
74-
INPUT_SLSA-REKOR-LOG-PUBLIC=true \
75-
INPUT_SLSA-RUNNER-LABEL="ubuntu-latest" \
76-
INPUT_SLSA-BUILD-ACTION-PATH="./actions/build-artifacts-composite" \
77-
INPUT_SLSA-WORKFLOW-INPUTS="{\"name1\":\"value1\",\"name2\":\"value2\",\"name3\":\"value3\",\"name4\":\"value4\"}" \
78-
INPUT_SLSA-WORKFLOW-INPUTS-MASK="name2, name4" \
79-
INPUT_SLSA-CHECKOUT-FETCH-DEPTH="2" \
80-
INPUT_SLSA-CHECKOUT-REPOSITORY-SHA1="abcdef" \
81-
INPUT_SLSA-VERSION="v1" \
82-
nodejs ./dist/index.js
83-
*/
8472
const slsaVersion = core.getInput("slsa-version");
8573
if (!["v1.0", "v0.2"].includes(slsaVersion)) {
8674
throw new Error(`Unsupported slsa-version: ${slsaVersion}`);
@@ -172,8 +160,7 @@ function run() {
172160
const bundle = yield (0, sigstore_1.sign)(Buffer.from(unsignedB64Token));
173161
// Verify just to double check.
174162
// NOTE: this is an offline verification.
175-
// TODO(#1668): re-enable verification.
176-
// await sigstore.verify(bundle, Buffer.from(unsignedB64Token));
163+
yield (0, sigstore_1.verify)(bundle, Buffer.from(unsignedB64Token));
177164
const bundleStr = JSON.stringify(bundle);
178165
const bundleB64 = Buffer.from(bundleStr).toString("base64");
179166
core.info(`bundleStr: ${bundleStr}`);

actions/delegator/setup-generic/dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

actions/delegator/setup-generic/src/main.ts

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -14,24 +14,11 @@ limitations under the License.
1414
import * as github from "@actions/github";
1515
import * as core from "@actions/core";
1616
import * as process from "process";
17-
import { sign } from "sigstore";
17+
import { sign, verify } from "sigstore";
1818
import * as tscommon from "tscommon";
1919

2020
async function run(): Promise<void> {
2121
try {
22-
/* Test locally:
23-
$ env INPUT_SLSA-WORKFLOW-RECIPIENT="laurentsimon/slsa-delegated-tool" \
24-
INPUT_SLSA-REKOR-LOG-PUBLIC=true \
25-
INPUT_SLSA-RUNNER-LABEL="ubuntu-latest" \
26-
INPUT_SLSA-BUILD-ACTION-PATH="./actions/build-artifacts-composite" \
27-
INPUT_SLSA-WORKFLOW-INPUTS="{\"name1\":\"value1\",\"name2\":\"value2\",\"name3\":\"value3\",\"name4\":\"value4\"}" \
28-
INPUT_SLSA-WORKFLOW-INPUTS-MASK="name2, name4" \
29-
INPUT_SLSA-CHECKOUT-FETCH-DEPTH="2" \
30-
INPUT_SLSA-CHECKOUT-REPOSITORY-SHA1="abcdef" \
31-
INPUT_SLSA-VERSION="v1" \
32-
nodejs ./dist/index.js
33-
*/
34-
3522
const slsaVersion = core.getInput("slsa-version");
3623
if (!["v1.0", "v0.2"].includes(slsaVersion)) {
3724
throw new Error(`Unsupported slsa-version: ${slsaVersion}`);
@@ -132,8 +119,7 @@ async function run(): Promise<void> {
132119

133120
// Verify just to double check.
134121
// NOTE: this is an offline verification.
135-
// TODO(#1668): re-enable verification.
136-
// await sigstore.verify(bundle, Buffer.from(unsignedB64Token));
122+
await verify(bundle, Buffer.from(unsignedB64Token));
137123
const bundleStr = JSON.stringify(bundle);
138124

139125
const bundleB64 = Buffer.from(bundleStr).toString("base64");

0 commit comments

Comments
 (0)