Skip to content

Update github-actions #765

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/actions/checkout-go/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,6 @@ runs:
token: "${{ inputs.token }}"

- name: Set up Go environment
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
with:
go-version: "${{ inputs.go-version }}"
4 changes: 2 additions & 2 deletions .github/actions/generate-builder/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ runs:
using: "composite"
steps:
- name: Checkout the Go builder repository
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
repository: "${{ inputs.repository }}"
ref: "${{ inputs.ref }}"
Expand Down Expand Up @@ -62,7 +62,7 @@ runs:
run: ./.github/actions/generate-builder/generate-builder.sh

- name: Compute sha256 of builder
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@07d42a79c8531365637e425fac6a95bf0f5dc29e
id: compute
with:
path: "${{ inputs.binary }}"
2 changes: 1 addition & 1 deletion .github/actions/secure-download-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ runs:

- name: Compute the hash
id: compute
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
path: "${{ inputs.path }}"

Expand Down
2 changes: 1 addition & 1 deletion .github/actions/secure-upload-artifact/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ runs:
steps:
- name: Compute binary hash
id: compute-digest
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
path: "${{ inputs.path }}"

Expand Down
20 changes: 10 additions & 10 deletions .github/workflows/builder_go_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
steps:
- name: Generate random 16-byte value (32-char hex encoded)
id: rng
uses: slsa-framework/slsa-github-generator/.github/actions/rng@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/rng@07d42a79c8531365637e425fac6a95bf0f5dc29e

detect-env:
outputs:
Expand All @@ -95,7 +95,7 @@ jobs:
steps:
- name: Generate builder
id: generate
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
repository: "${{ needs.detect-env.outputs.repository }}"
ref: "${{ needs.detect-env.outputs.ref }}"
Expand Down Expand Up @@ -128,12 +128,12 @@ jobs:
needs: [builder, rng]
steps:
- name: Checkout the Go repository
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
go-version: ${{ inputs.go-version }}

- name: Download builder
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}"
path: "${{ env.BUILDER_BINARY }}"
Expand Down Expand Up @@ -166,12 +166,12 @@ jobs:
needs: [builder, build-dry, rng]
steps:
- name: Checkout the Go repository
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
go-version: ${{ inputs.go-version }}

- name: Download builder
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}"
path: "${{ env.BUILDER_BINARY }}"
Expand Down Expand Up @@ -217,7 +217,7 @@ jobs:

- name: Upload generated binary
id: upload
uses: slsa-framework/slsa-github-generator/.github/actions/secure-upload-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-upload-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ needs.build-dry.outputs.go-binary-name }}"
path: "${{ needs.build-dry.outputs.go-binary-name }}"
Expand All @@ -238,7 +238,7 @@ jobs:
go-provenance-sha256: ${{ steps.sign-prov.outputs.signed-provenance-sha256 }}
steps:
- name: Download builder
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}"
path: "${{ env.BUILDER_BINARY }}"
Expand Down Expand Up @@ -290,14 +290,14 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && inputs.upload-assets == true
steps:
- name: Download binary
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ needs.build-dry.outputs.go-binary-name }}"
path: "${{ needs.build-dry.outputs.go-binary-name }}"
sha256: "${{ needs.build.outputs.go-binary-sha256 }}"

- name: Download provenance
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ needs.provenance.outputs.go-provenance-name }}"
path: "${{ needs.provenance.outputs.go-provenance-name }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@7fee4ca032ac341c12486c4c06822c5221c76533 # tag=v2.1.20
uses: github/codeql-action/init@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2.1.21
with:
languages: ${{ matrix.language }}
# If you wish to specify custom queries, you can do so here or in a config file.
Expand All @@ -57,7 +57,7 @@ jobs:
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
# If this step fails, then you should remove it and run the build manually (see below)
- name: Autobuild
uses: github/codeql-action/autobuild@7fee4ca032ac341c12486c4c06822c5221c76533 # tag=v2.1.20
uses: github/codeql-action/autobuild@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2.1.21

# Command-line programs to run using the OS shell.
# 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun
Expand All @@ -70,4 +70,4 @@ jobs:
# ./location_of_script_within_repo/buildscript.sh

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@7fee4ca032ac341c12486c4c06822c5221c76533 # tag=v2.1.20
uses: github/codeql-action/analyze@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2.1.21
4 changes: 2 additions & 2 deletions .github/workflows/generator_container_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ jobs:
steps:
- name: Detect the generator ref
id: detect
uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@07d42a79c8531365637e425fac6a95bf0f5dc29e

# generator builds the generator binary and runs it to generate SLSA
# provenance.
Expand All @@ -81,7 +81,7 @@ jobs:
packages: write
steps:
- name: Generate builder
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
repository: "${{ needs.detect-env.outputs.repository }}"
ref: "${{ needs.detect-env.outputs.ref }}"
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/generator_generic_slsa3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ jobs:
steps:
- name: Detect the generator ref
id: detect
uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@07d42a79c8531365637e425fac6a95bf0f5dc29e

# generator builds the generator binary and runs it to generate SLSA
# provenance.
Expand All @@ -93,7 +93,7 @@ jobs:
actions: read
steps:
- name: Generate builder
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
repository: "${{ needs.detect-env.outputs.repository }}"
ref: "${{ needs.detect-env.outputs.ref }}"
Expand Down Expand Up @@ -148,7 +148,7 @@ jobs:
if: startsWith(github.ref, 'refs/tags/') && inputs.upload-assets == true
steps:
- name: Download the provenance
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@950808bd3049727b4caea680f48b367fc596adf6
uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@07d42a79c8531365637e425fac6a95bf0f5dc29e
with:
name: "${{ inputs.attestation-name }}"
path: "${{ inputs.attestation-name }}"
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-submit.lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
- uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
with:
go-version: "1.18"
- env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/pre-submit.units.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Checkout
uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2
- name: setup-go
uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1
uses: actions/setup-go@268d8c0ca0432bb2cf416faae41297df9d262d7f # tag=v3.3.0
with:
go-version: "1.18"

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/scorecards.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,6 @@ jobs:

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@7fee4ca032ac341c12486c4c06822c5221c76533 # tag=v2.1.20
uses: github/codeql-action/upload-sarif@c7f292ea4f542c473194b33813ccd4c207a6c725 # tag=v2.1.21
with:
sarif_file: results.sarif