@@ -14,19 +14,20 @@ jobs:
1414 name : Release
1515 runs-on : ubuntu-latest
1616 permissions :
17- contents : write
18- actions : write
19- id-token : write
20- attestations : write
17+ contents : write # for release-please-action to create releases and update changelogs
18+ actions : write # for release-please-action to trigger other workflows
19+ id-token : write # for actions/attest-build-provenance to generate attestations
20+ attestations : write # for actions/attest-build-provenance to write attestations
2121 steps :
2222 - name : Harden the runner (Audit all outbound calls)
2323 uses : step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
2424 with :
2525 egress-policy : audit
2626
27- - uses : actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 .0.0
27+ - uses : actions/setup-node@2028fbc5c25fe9cf00d9f06a71cc4710d4507903 # v6 .0.0
2828 with :
2929 node-version : 22
30+ package-manager-cache : false
3031 - uses : actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
3132 with :
3233 persist-credentials : false
4546 run : echo "name=${GITHUB_REF#refs/heads/}" >> $GITHUB_OUTPUT
4647 - name : Release
4748 id : release
48- uses : googleapis/release-please-action@c2a5a2bd6a758a0937f1ddb1e8950609867ed15c # v4.3 .0
49+ uses : googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4.4 .0
4950 with :
5051 target-branch : ${{ steps.branch.outputs.name }}
5152 release-type : terraform-module
@@ -63,14 +64,16 @@ jobs:
6364 VERSION : ${{ github.event.inputs.version }}
6465 TAG_NAME : ${{ steps.release.outputs.tag_name }}
6566 ATTESTATION_URL : ${{ steps.attest.outputs.attestation-url }}
67+ REPOSITORY : ${{ github.repository }}
6668 run : |
6769 version="${VERSION}"
6870 tag_name="${TAG_NAME}"
6971 attestation_url="${ATTESTATION_URL}"
72+ repository="${REPOSITORY}"
7073 gh release view $version --json body -q '.body' > new-release-notes.md
7174 echo "## Attestation" >> new-release-notes.md
7275 echo "Attestation url: $attestation_url" >> new-release-notes.md
73- echo "Verify the artifacts by running \`gh attestation verify <name_of_artifact> --repo ${{ github. repository } }\`" >> new-release-notes.md
76+ echo "Verify the artifacts by running \`gh attestation verify <name_of_artifact> --repo ${repository}\`" >> new-release-notes.md
7477 gh release edit $tag_name -F new-release-notes.md -t $tag_name
7578 - name : Upload release assets
7679 if : ${{ steps.release.outputs.releases_created == 'true' }}
0 commit comments