29
29
contents : write
30
30
steps :
31
31
- name : tag
32
- uses : actions/github-script@v6
32
+ uses : actions/github-script@d556feaca394842dc55e4734bf3bb9f685482fa0 # tag=v6.3.3
33
33
with :
34
34
script : |
35
35
github.rest.git.createRef({
@@ -46,12 +46,12 @@ jobs:
46
46
hashes : ${{ steps.hash.outputs.hashes }}
47
47
steps :
48
48
- name : checkout tag
49
- uses : actions/checkout@v3
49
+ uses : actions/checkout@755da8c3cf115ac066823e79a1e1788f8940201b # tag=v3.2.0
50
50
with :
51
51
ref : " refs/tags/v${{ github.event.inputs.release_version }}"
52
52
53
53
- name : Set up JDK 11
54
- uses : actions/setup-java@v3
54
+ uses : actions/setup-java@1df8dbefe2a8cbc99770194893dd902763bee34b # tag=v3.9.0
55
55
with :
56
56
java-version : 11
57
57
distribution : ' temurin'
81
81
actions : read # To read the workflow path.
82
82
id-token : write # To sign the provenance.
83
83
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
84
85
uses :
slsa-framework/slsa-github-generator/.github/workflows/[email protected]
85
86
with :
86
87
attestation-name : " sigstore-java-${{ github.event.inputs.release_version }}.attestation.intoto.jsonl"
@@ -93,17 +94,17 @@ jobs:
93
94
contents : write
94
95
steps :
95
96
- name : Download attestation
96
- uses : actions/download-artifact@v3
97
+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1
97
98
with :
98
99
name : " ${{ needs.provenance.outputs.attestation-name }}"
99
100
path : ./release/
100
101
- name : Download gradle release artifacts
101
- uses : actions/download-artifact@v3
102
+ uses : actions/download-artifact@9782bd6a9848b53b110e712e20e42d89988822b7 # tag=v3.0.1
102
103
with :
103
104
name : project-release-artifacts
104
105
path : ./release/
105
106
- name : Create draft release
106
- uses : softprops/action-gh-release@v1
107
+ uses : softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844 # tag=v0.1.15
107
108
with :
108
109
tag_name : v${{ github.event.inputs.release_version }}
109
110
body : See [CHANGELOG.md](https://github.com/$GITHUB_REPOSITORY/CHANGELOG.md) for more details.
0 commit comments