Skip to content

Commit c54ab9c

Browse files
authored
Merge pull request #257 from sigstore/fixed-tags-actions
clean up action references to use hashes
2 parents acfd47d + 6136277 commit c54ab9c

File tree

3 files changed

+11
-9
lines changed

3 files changed

+11
-9
lines changed

.github/workflows/ci.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,14 +36,14 @@ jobs:
3636
permissions:
3737
id-token: write
3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3.2.0
4040
- name: Set up JDK ${{ matrix.java-version }}
4141
uses: actions/setup-java@v3
4242
with:
4343
java-version: ${{ matrix.java-version }}
4444
distribution: 'temurin'
4545
- name: Setup Go environment
46-
uses: actions/[email protected]
46+
uses: actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # tag=v3.5.0
4747
with:
4848
go-version: '1.19.x'
4949

.github/workflows/gradle-wrapper-validation.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,5 +6,6 @@ jobs:
66
name: "Validation"
77
runs-on: ubuntu-latest
88
steps:
9-
- uses: actions/checkout@v3
9+
- uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3.2.0
10+
# allstar complains if we don't use tags here (https://github.com/ossf/scorecard/issues/2477)
1011
- uses: gradle/wrapper-validation-action@v1

.github/workflows/tag-and-build-release.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929
contents: write
3030
steps:
3131
- name: tag
32-
uses: actions/github-script@v6
32+
uses: actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # tag=v6.3.3
3333
with:
3434
script: |
3535
github.rest.git.createRef({
@@ -46,12 +46,12 @@ jobs:
4646
hashes: ${{ steps.hash.outputs.hashes }}
4747
steps:
4848
- name: checkout tag
49-
uses: actions/checkout@v3
49+
uses: actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3.2.0
5050
with:
5151
ref: "refs/tags/v${{ github.event.inputs.release_version }}"
5252

5353
- name: Set up JDK 11
54-
uses: actions/setup-java@v3
54+
uses: actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # tag=v3.9.0
5555
with:
5656
java-version: 11
5757
distribution: 'temurin'
@@ -81,6 +81,7 @@ jobs:
8181
actions: read # To read the workflow path.
8282
id-token: write # To sign the provenance.
8383
contents: write # To add assets to a release.
84+
# use tags here: https://github.com/slsa-framework/slsa-github-generator#referencing-slsa-builders-and-generators
8485
uses: slsa-framework/slsa-github-generator/.github/workflows/[email protected]
8586
with:
8687
attestation-name: "sigstore-java-${{ github.event.inputs.release_version }}.attestation.intoto.jsonl"
@@ -93,17 +94,17 @@ jobs:
9394
contents: write
9495
steps:
9596
- name: Download attestation
96-
uses: actions/download-artifact@v3
97+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1
9798
with:
9899
name: "${{ needs.provenance.outputs.attestation-name }}"
99100
path: ./release/
100101
- name: Download gradle release artifacts
101-
uses: actions/download-artifact@v3
102+
uses: actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1
102103
with:
103104
name: project-release-artifacts
104105
path: ./release/
105106
- name: Create draft release
106-
uses: softprops/action-gh-release@v1
107+
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # tag=v0.1.15
107108
with:
108109
tag_name: v${{ github.event.inputs.release_version }}
109110
body: See [CHANGELOG.md](https://github.com/$GITHUB_REPOSITORY/CHANGELOG.md) for more details.

0 commit comments

Comments
 (0)