2020 - " v*"
2121 pull_request :
2222
23- permissions :
24- contents : write
25- id-token : write # For AWS auth
23+ permissions : {}
2624
2725jobs :
2826 snapshot :
2927 runs-on : ubuntu-latest
3028 environment : snapshot
3129 if : github.event_name == 'pull_request' && !github.event.pull_request.head.repo.fork
30+ permissions :
31+ contents : read
3232 steps :
33- - uses : actions/checkout@v5
33+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
3434 with :
3535 fetch-depth : 0
36+ persist-credentials : false
3637 - name : Set up Go
3738 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
3839 with :
@@ -67,19 +68,19 @@ jobs:
6768 gpg-connect-agent "PRESET_PASSPHRASE $KEYGRIP -1 $(echo -n '${{ secrets.SIGNING_PASSWORD }}' | od -An -t x1 | tr -d ' ')"
6869
6970 - name : " Set up Python"
70- uses : actions/setup-python@v5
71+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
7172
7273 - name : Install uv
73- uses : astral-sh/setup-uv@v6
74+ uses : astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
7475
7576 - name : Install Wheel
7677 run : pip install wheel
7778
7879 - name : Set up QEMU
79- uses : docker/setup-qemu-action@v3
80+ uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
8081
8182 - name : Set up Docker Buildx
82- uses : docker/setup-buildx-action@v3
83+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
8384
8485 - name : Run GoReleaser Snapshot
8586 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
9495 SIGNING_PASSWORD : ${{ secrets.SIGNING_PASSWORD }}
9596
9697 - name : Upload Snapshot Artifacts
97- uses : actions/upload-artifact@v4
98+ uses : actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
9899 with :
99100 name : snapshot-artifacts
100101 path : |
@@ -111,14 +112,19 @@ jobs:
111112 runs-on : ubuntu-latest
112113 environment : production
113114 if : github.event_name == 'push'
115+ permissions :
116+ contents : write
117+ id-token : write # For AWS auth
114118 steps :
115- - uses : actions/checkout@v5
119+ - uses : actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1
116120 with :
117121 fetch-depth : 0
122+ persist-credentials : false
118123 - name : Set up Go
119124 uses : actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
120125 with :
121126 go-version-file : ' ./go.mod'
127+ cache : false
122128
123129 # pull more recent version of wixl than in the ubuntu repos
124130 # needed for Path Env update support
@@ -156,10 +162,12 @@ jobs:
156162 aws-region : ${{ vars.AWS_REGION }}
157163
158164 - name : " Set up Python"
159- uses : actions/setup-python@v5
165+ uses : actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
160166
161167 - name : Install uv
162- uses : astral-sh/setup-uv@v6
168+ uses : astral-sh/setup-uv@d0cc045d04ccac9d8b7881df0226f9e82c39688e # v6.8.0
169+ with :
170+ enable-cache : false
163171
164172 - name : Install Wheel
165173 run : pip install wheel
@@ -171,10 +179,10 @@ jobs:
171179 password : ${{ secrets.DOCKER_TOKEN }}
172180
173181 - name : Set up QEMU
174- uses : docker/setup-qemu-action@v3
182+ uses : docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
175183
176184 - name : Set up Docker Buildx
177- uses : docker/setup-buildx-action@v3
185+ uses : docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3.12.0
178186
179187 # cross-platform macos notarization/signing
180188 - name : Install anchore/quill
@@ -191,8 +199,8 @@ jobs:
191199 sudo dpkg --install jsign_7.0_all.deb
192200 rm jsign_7.0_all.deb
193201
194- echo "PKCS11_CONFIG=${{ steps.digicert.outputs. PKCS11_CONFIG } }" >> "$GITHUB_ENV"
195- SM_TOOLS_DIR=$(dirname "$(realpath '${{ steps.digicert.outputs. PKCS11_CONFIG }}' )")
202+ echo "PKCS11_CONFIG=${PKCS11_CONFIG}" >> "$GITHUB_ENV"
203+ SM_TOOLS_DIR=$(dirname "$(realpath "${ PKCS11_CONFIG}" )")
196204 echo "${{ secrets.SM_CLIENT_CERT_FILE_B64 }}" | base64 -d > "${SM_TOOLS_DIR}/Certificate_pkcs12.p12"
197205 echo "SM_HOST=${{ secrets.SM_HOST }}" >> "$GITHUB_ENV"
198206 echo "SM_API_KEY=${{ secrets.SM_API_KEY }}" >> "$GITHUB_ENV"
@@ -202,6 +210,8 @@ jobs:
202210
203211 # clean up
204212 git clean -xdf
213+ env :
214+ PKCS11_CONFIG : ${{ steps.digicert.outputs.PKCS11_CONFIG }}
205215
206216 - name : Run GoReleaser
207217 uses : goreleaser/goreleaser-action@e435ccd777264be153ace6237001ef4d979d3a7a # v6.4.0
@@ -236,4 +246,6 @@ jobs:
236246 --if-match=$ETAG \
237247 --kvs-arn=${{ secrets.AWS_CF_KVSTORE_ARN }} \
238248 --key=latest \
239- --value=${{ fromJSON(steps.gorelease.outputs.metadata).version }}
249+ --value="${RELEASE_VERSION}"
250+ env :
251+ RELEASE_VERSION : ${{ fromJSON(steps.gorelease.outputs.metadata).version }}
0 commit comments