diff --git a/.github/actions/checkout-go/action.yml b/.github/actions/checkout-go/action.yml index f13ec7e502..8465a0381d 100644 --- a/.github/actions/checkout-go/action.yml +++ b/.github/actions/checkout-go/action.yml @@ -56,6 +56,6 @@ runs: token: "${{ inputs.token }}" - name: Set up Go environment - uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # tag=v3.2.0 + uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1 with: go-version: "${{ inputs.go-version }}" diff --git a/.github/actions/generate-builder/action.yml b/.github/actions/generate-builder/action.yml index bf9083fa75..50cb9b1baa 100644 --- a/.github/actions/generate-builder/action.yml +++ b/.github/actions/generate-builder/action.yml @@ -34,7 +34,7 @@ runs: using: "composite" steps: - name: Checkout the Go builder repository - uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@575bdd242ac0bc503966cedac1dabb42515b545f with: repository: "${{ inputs.repository }}" ref: "${{ inputs.ref }}" @@ -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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@575bdd242ac0bc503966cedac1dabb42515b545f id: compute with: path: "${{ inputs.binary }}" diff --git a/.github/actions/secure-download-artifact/action.yml b/.github/actions/secure-download-artifact/action.yml index 9fccc9dc20..3d59ece693 100644 --- a/.github/actions/secure-download-artifact/action.yml +++ b/.github/actions/secure-download-artifact/action.yml @@ -36,7 +36,7 @@ runs: - name: Compute the hash id: compute - uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@575bdd242ac0bc503966cedac1dabb42515b545f with: path: "${{ inputs.path }}" diff --git a/.github/actions/secure-upload-artifact/action.yml b/.github/actions/secure-upload-artifact/action.yml index f3ac9db9ba..2a47146a74 100644 --- a/.github/actions/secure-upload-artifact/action.yml +++ b/.github/actions/secure-upload-artifact/action.yml @@ -18,7 +18,7 @@ runs: steps: - name: Compute binary hash id: compute-digest - uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/compute-sha256@575bdd242ac0bc503966cedac1dabb42515b545f with: path: "${{ inputs.path }}" diff --git a/.github/workflows/builder_go_slsa3.yml b/.github/workflows/builder_go_slsa3.yml index cff95a6efe..680c6faff1 100644 --- a/.github/workflows/builder_go_slsa3.yml +++ b/.github/workflows/builder_go_slsa3.yml @@ -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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/rng@575bdd242ac0bc503966cedac1dabb42515b545f detect-env: outputs: @@ -80,7 +80,7 @@ jobs: steps: - name: Detect the builder ref id: detect - uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@1d646d70aeba1516af69fb0ef48206580122449b # tag=v1.1.1 + uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@d995948e8d53cc639c0d3ef69db31dbc243519c4 # tag=v1.1.1 ################################################################### # # @@ -95,7 +95,7 @@ jobs: steps: - name: Generate builder id: generate - uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@575bdd242ac0bc503966cedac1dabb42515b545f with: repository: "${{ needs.detect-env.outputs.repository }}" ref: "${{ needs.detect-env.outputs.ref }}" @@ -128,12 +128,12 @@ jobs: needs: [builder, rng] steps: - name: Checkout the Go repository - uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@575bdd242ac0bc503966cedac1dabb42515b545f with: go-version: ${{ inputs.go-version }} - name: Download builder - uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}" path: "${{ env.BUILDER_BINARY }}" @@ -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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/checkout-go@575bdd242ac0bc503966cedac1dabb42515b545f with: go-version: ${{ inputs.go-version }} - name: Download builder - uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}" path: "${{ env.BUILDER_BINARY }}" @@ -217,7 +217,7 @@ jobs: - name: Upload generated binary id: upload - uses: slsa-framework/slsa-github-generator/.github/actions/secure-upload-artifact@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-upload-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ needs.build-dry.outputs.go-binary-name }}" path: "${{ needs.build-dry.outputs.go-binary-name }}" @@ -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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ env.BUILDER_BINARY }}-${{ needs.rng.outputs.value }}" path: "${{ env.BUILDER_BINARY }}" @@ -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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f 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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ needs.provenance.outputs.go-provenance-name }}" path: "${{ needs.provenance.outputs.go-provenance-name }}" diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 29431204d8..891da3c25a 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -44,7 +44,7 @@ jobs: # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2.1.15 + uses: github/codeql-action/init@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # tag=v2.1.16 with: languages: ${{ matrix.language }} # If you wish to specify custom queries, you can do so here or in a config file. @@ -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@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2.1.15 + uses: github/codeql-action/autobuild@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # tag=v2.1.16 # 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 @@ -70,4 +70,4 @@ jobs: # ./location_of_script_within_repo/buildscript.sh - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2.1.15 + uses: github/codeql-action/analyze@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # tag=v2.1.16 diff --git a/.github/workflows/generator_container_slsa3.yml b/.github/workflows/generator_container_slsa3.yml index 91a7d6f84e..a42c5c3d1d 100644 --- a/.github/workflows/generator_container_slsa3.yml +++ b/.github/workflows/generator_container_slsa3.yml @@ -57,7 +57,7 @@ jobs: steps: - name: Detect the generator ref id: detect - uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@49e648aa7f5f4f88513b6cd54f6b189516184e6b + uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@575bdd242ac0bc503966cedac1dabb42515b545f # generator builds the generator binary and runs it to generate SLSA # provenance. @@ -81,7 +81,7 @@ jobs: packages: write steps: - name: Generate builder - uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@49e648aa7f5f4f88513b6cd54f6b189516184e6b + uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@575bdd242ac0bc503966cedac1dabb42515b545f with: repository: "${{ needs.detect-env.outputs.repository }}" ref: "${{ needs.detect-env.outputs.ref }}" @@ -91,7 +91,7 @@ jobs: # NOTE: We are using the generic generator. directory: "${{ env.BUILDER_DIR }}/generic" - - uses: sigstore/cosign-installer@7e0881f8fe90b25e305bbf0309761e9314607e25 # tag=v2.4.0 + - uses: sigstore/cosign-installer@48866aa521d8bf870604709cd43ec2f602d03ff2 # tag=v2.4.1 - name: Login env: UNTRUSTED_IMAGE: "${{ inputs.image }}" diff --git a/.github/workflows/generator_generic_slsa3.yml b/.github/workflows/generator_generic_slsa3.yml index 4907388b9a..015d9be093 100644 --- a/.github/workflows/generator_generic_slsa3.yml +++ b/.github/workflows/generator_generic_slsa3.yml @@ -69,7 +69,7 @@ jobs: steps: - name: Detect the generator ref id: detect - uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/detect-workflow@575bdd242ac0bc503966cedac1dabb42515b545f # generator builds the generator binary and runs it to generate SLSA # provenance. @@ -93,7 +93,7 @@ jobs: actions: read steps: - name: Generate builder - uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/generate-builder@575bdd242ac0bc503966cedac1dabb42515b545f with: repository: "${{ needs.detect-env.outputs.repository }}" ref: "${{ needs.detect-env.outputs.ref }}" @@ -141,7 +141,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@1d646d70aeba1516af69fb0ef48206580122449b + uses: slsa-framework/slsa-github-generator/.github/actions/secure-download-artifact@575bdd242ac0bc503966cedac1dabb42515b545f with: name: "${{ inputs.attestation-name }}" path: "${{ inputs.attestation-name }}" diff --git a/.github/workflows/pre-submit.lint.yml b/.github/workflows/pre-submit.lint.yml index e4678cff62..072f777fc5 100644 --- a/.github/workflows/pre-submit.lint.yml +++ b/.github/workflows/pre-submit.lint.yml @@ -11,7 +11,7 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2 - - uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # tag=v3.2.0 + - uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1 with: go-version: "1.18" - env: diff --git a/.github/workflows/pre-submit.units.yml b/.github/workflows/pre-submit.units.yml index 6e3c8b51dc..a68237591f 100644 --- a/.github/workflows/pre-submit.units.yml +++ b/.github/workflows/pre-submit.units.yml @@ -22,7 +22,7 @@ jobs: - name: Checkout uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2 - name: setup-go - uses: actions/setup-go@b22fbbc2921299758641fab08929b4ac52b32923 # tag=v3.2.0 + uses: actions/setup-go@84cbf8094393cdc5fe1fe1671ff2647332956b1a # tag=v3.2.1 with: go-version: "1.18" @@ -65,12 +65,12 @@ jobs: if: ${{ always() }} steps: - name: Checkout - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.3.4 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4 with: path: generator - name: Checkout - uses: actions/checkout@ec3a7ce113134d7a93b817d10a8272cb61118579 # v2.3.4 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # v2.3.4 with: path: verifier repository: slsa-framework/slsa-verifier diff --git a/.github/workflows/scorecards.yml b/.github/workflows/scorecards.yml index f445374792..4f2ed20aae 100644 --- a/.github/workflows/scorecards.yml +++ b/.github/workflows/scorecards.yml @@ -25,12 +25,12 @@ jobs: steps: - name: "Checkout code" - uses: actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846 # tag=v3.0.0 + uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b # tag=v3.0.2 with: persist-credentials: false - name: "Run analysis" - uses: ossf/scorecard-action@3e15ea8318eee9b333819ec77a36aca8d39df13e # tag=v1.1.1 + uses: ossf/scorecard-action@ce330fde6b1a5c9c75b417e7efc510b822a35564 # tag=v1.1.2 with: results_file: results.sarif results_format: sarif @@ -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@3f62b754e23e0dd60f91b744033e1dc1654c0ec6 # tag=v2.1.15 + uses: github/codeql-action/upload-sarif@3e7e3b32d0fb8283594bb0a76cc60a00918b0969 # tag=v2.1.16 with: sarif_file: results.sarif