2929 contents : read
3030
3131 container :
32- image : ghcr.io/wolfi-dev/sdk:latest@sha256:110c4bc0a8941606034ee7af12f1197b4a6b6f6434fd4b4bbf61de501e18ffd1
32+ image : ghcr.io/wolfi-dev/sdk:latest@sha256:c2f7cbbfb67ff9cad47e25ff8eb87945a4c5a0a81b2fa9e93a1d9ac6504a8df5
3333 # TODO: Deprivilege
3434 options : |
3535 --cap-add NET_ADMIN --cap-add SYS_ADMIN --device /dev/fuse --security-opt seccomp=unconfined --security-opt apparmor:unconfined
@@ -122,7 +122,7 @@ jobs:
122122 # Always run this step for https://github.com/wolfi-dev/os/issues/8698
123123 - if : ${{ always() }}
124124 name : ' Upload built packages archive to GitHub Artifacts'
125- uses : actions/upload-artifact@v3
125+ uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
126126 with :
127127 name : packages-${{ matrix.arch }}
128128 path : /tmp/packages-${{ matrix.arch }}.tar.gz
@@ -142,7 +142,7 @@ jobs:
142142
143143 container :
144144 # NOTE: This step only signs and uploads, so it doesn't need any privileges
145- image : ghcr.io/wolfi-dev/sdk:latest@sha256:110c4bc0a8941606034ee7af12f1197b4a6b6f6434fd4b4bbf61de501e18ffd1
145+ image : ghcr.io/wolfi-dev/sdk:latest@sha256:c2f7cbbfb67ff9cad47e25ff8eb87945a4c5a0a81b2fa9e93a1d9ac6504a8df5
146146
147147 steps :
148148 - uses : actions/checkout@v4
@@ -154,33 +154,32 @@ jobs:
154154 git config --global --add safe.directory "$(pwd)"
155155
156156 - name : ' Download x86_64 package archives'
157- uses : actions/download-artifact@v3
157+ uses : actions/download-artifact@21e5c25de9cf2ee24742cd3e822327f3be6dd2a3 # v4.1.1
158158 with :
159159 path : /tmp/artifacts/
160160 name : packages-x86_64
161161
162162 - name : ' Download aarch64 package archives'
163- uses : actions/download-artifact@v3
163+ uses : actions/download-artifact@21e5c25de9cf2ee24742cd3e822327f3be6dd2a3 # v4.1.1
164164 with :
165165 path : /tmp/artifacts/
166166 name : packages-aarch64
167167
168- - name : ' Authenticate to Google Cloud'
168+ # This is managed here: https://github.com/chainguard-dev/secrets/blob/main/wolfi-dev.tf
169+ - uses : google-github-actions/auth@a6e2e39c0a0331da29f7fd2c2a20a427e8d3ad1f # v2.1.1
169170 id : auth
170- uses : google-github-actions/auth@f6de81663f7788d05bd15bcce18f0e57f23f0846 # v2.0.1
171171 with :
172- workload_identity_provider : " projects/618116202522/locations/global/workloadIdentityPools/prod-shared-e350/providers/prod-shared-gha"
173- service_account : " prod-images-ci@prod-images-c6e5.iam.gserviceaccount.com"
174-
172+ workload_identity_provider : " projects/12758742386/locations/global/workloadIdentityPools/github-pool/providers/github-provider"
173+ service_account : " wolfi-dev@chainguard-github-secrets.iam.gserviceaccount.com"
175174 - uses : google-github-actions/setup-gcloud@5a5f7b85fca43e76e53463acaa9d408a03c98d3a # v2.0.1
176175 with :
177- project_id : " prod-images-c6e5"
178-
176+ project_id : " chainguard-github-secrets"
179177 - uses : ' google-github-actions/get-secretmanager-secrets@ae0d4054c32840e2ced71207a9df55161ae3debc' # v2.0.0
180178 id : secrets
181179 with :
182180 secrets : |-
183- token:prod-images-c6e5/melange-signing-key
181+ token:chainguard-github-secrets/wolfi-dev-signing-key
182+
184183 - run : echo "${{ steps.secrets.outputs.token }}" > ./wolfi-signing.rsa
185184 - run : |
186185 mkdir -p /etc/apk/keys
@@ -208,6 +207,15 @@ jobs:
208207 # of an abundance of caution.
209208 - run : rm ./wolfi-signing.rsa
210209
210+ # We use a different GSA for our interaction with GCS.
211+ - uses : google-github-actions/auth@f6de81663f7788d05bd15bcce18f0e57f23f0846 # v2.0.1
212+ with :
213+ workload_identity_provider : " projects/618116202522/locations/global/workloadIdentityPools/prod-shared-e350/providers/prod-shared-gha"
214+ service_account : " prod-images-ci@prod-images-c6e5.iam.gserviceaccount.com"
215+ - uses : google-github-actions/setup-gcloud@5a5f7b85fca43e76e53463acaa9d408a03c98d3a # v2.0.1
216+ with :
217+ project_id : " prod-images-c6e5"
218+
211219 - name : ' Upload packages to GCS'
212220 run : |
213221 for arch in "x86_64" "aarch64"; do
@@ -229,7 +237,7 @@ jobs:
229237 tar -cvzf /tmp/indexes.tar.gz --files-from to-include
230238
231239 - name : ' Upload APKINDEX archive to GitHub Artifacts'
232- uses : actions/upload-artifact@v3
240+ uses : actions/upload-artifact@5d5d22a31266ced268874388b861e4b58bb5c2f3 # v4.3.1
233241 with :
234242 name : indexes
235243 path : /tmp/indexes.tar.gz
@@ -246,7 +254,7 @@ jobs:
246254
247255 container :
248256 # NOTE: This step only signs and uploads, so it doesn't need any privileges
249- image : ghcr.io/wolfi-dev/sdk:latest@sha256:110c4bc0a8941606034ee7af12f1197b4a6b6f6434fd4b4bbf61de501e18ffd1
257+ image : ghcr.io/wolfi-dev/sdk:latest@sha256:c2f7cbbfb67ff9cad47e25ff8eb87945a4c5a0a81b2fa9e93a1d9ac6504a8df5
250258
251259 steps :
252260 - uses : actions/checkout@v4
@@ -269,7 +277,7 @@ jobs:
269277 project_id : prod-images-c6e5
270278
271279 - name : ' Download index archive'
272- uses : actions/download-artifact@v3
280+ uses : actions/download-artifact@21e5c25de9cf2ee24742cd3e822327f3be6dd2a3 # v4.1.1
273281 with :
274282 path : /tmp/artifacts/
275283 name : indexes
0 commit comments