Skip to content

Commit 9841156

Browse files
jon8787claude
andcommitted
UID2-6913: Pin third-party GitHub Action refs to commit SHAs
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 3b8a311 commit 9841156

11 files changed

Lines changed: 40 additions & 34 deletions

File tree

.github/actions/build_ami/action.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ runs:
7171

7272
- name: Get EIF for Run ${{ inputs.operator_run_number }}
7373
id: get_eif_for_run
74-
uses: dawidd6/action-download-artifact@v6
74+
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
7575
if: ${{ inputs.operator_release == '' }}
7676
with:
7777
name: 'aws-${{ inputs.identity_scope }}-deployment-files-.*'
@@ -94,14 +94,14 @@ runs:
9494
ls ./scripts/aws/uid2-operator-ami/artifacts/ -al
9595
9696
- name: Configure UID2 AWS credentials
97-
uses: aws-actions/configure-aws-credentials@v4
97+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
9898
if: ${{ inputs.identity_scope == 'uid2' }}
9999
with:
100100
aws-region: ${{ inputs.uid2_aws_region }}
101101
role-to-assume: ${{ inputs.uid2_aws_role }}
102102

103103
- name: Configure EUID AWS credentials
104-
uses: aws-actions/configure-aws-credentials@v4
104+
uses: aws-actions/configure-aws-credentials@7474bc4690e29a8392af63c5b98e7449536d5c3a # v4
105105
if: ${{ inputs.identity_scope == 'euid' }}
106106
with:
107107
aws-region: ${{ inputs.euid_aws_region }}
@@ -124,7 +124,7 @@ runs:
124124
125125
- name: Setup Packer
126126
id: setup-packer
127-
uses: hashicorp/setup-packer@main
127+
uses: hashicorp/setup-packer@c3d53c525d422944e50ee27b840746d6522b08de # main
128128

129129
- name: Create AMI
130130
shell: bash

.github/actions/build_aws_eif/action.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ runs:
3838
fetch-depth: 0
3939

4040
- name: Restore timestamps
41-
uses: thetradedesk/git-restore-mtime-action@v1.3
41+
uses: thetradedesk/git-restore-mtime-action@a6059d100648f8027eb1af5e6e6fd6e1328083af # v1.3
4242

4343
- name: Free up space - delete preinstalled tools
4444
shell: bash

.github/actions/build_eks_docker_image/action.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ runs:
5959

6060
- name: Get EIF for Run ${{ inputs.operator_run_number }}
6161
id: get_eif_for_run
62-
uses: dawidd6/action-download-artifact@v6
62+
uses: dawidd6/action-download-artifact@bf251b5aa9c2f7eeb574a96ee720e24f801b7c11 # v6
6363
if: ${{ inputs.operator_release == '' }}
6464
with:
6565
name: 'aws-${{ inputs.identity_scope }}-deployment-files-.*'
@@ -112,22 +112,22 @@ runs:
112112
df -h
113113
114114
- name: Log in to the Docker container registry
115-
uses: docker/login-action@v3
115+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
116116
with:
117117
registry: ${{ env.REGISTRY }}
118118
username: ${{ github.actor }}
119119
password: ${{ inputs.github_token }}
120120

121121
- name: Extract metadata (tags, labels) for Docker
122122
id: meta
123-
uses: docker/metadata-action@v5
123+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
124124
with:
125125
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}-eks-${{ inputs.identity_scope }}
126126
tags: |
127127
type=raw,value=${{ steps.versionNumber.outputs.VERSION_NUMBER }}.${{ github.run_number }}
128128
129129
- name: Build and export to Docker
130-
uses: docker/build-push-action@v5
130+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
131131
with:
132132
context: ${{ inputs.artifacts_output_dir }}
133133
load: true
@@ -140,7 +140,7 @@ runs:
140140
141141
- name: Push to Docker
142142
id: push-to-docker
143-
uses: docker/build-push-action@v5
143+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
144144
with:
145145
context: ${{ inputs.artifacts_output_dir }}
146146
push: true

.github/actions/update_operator_version/action.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ runs:
4040

4141
- name: Approve Major release
4242
if: inputs.release_type == 'Major'
43-
uses: trstringer/manual-approval@v1
43+
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
4444
with:
4545
secret: ${{ github.token }}
4646
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang
@@ -77,7 +77,7 @@ runs:
7777
fetch-depth: 0
7878

7979
- name: Restore timestamps
80-
uses: thetradedesk/git-restore-mtime-action@v1.3
80+
uses: thetradedesk/git-restore-mtime-action@a6059d100648f8027eb1af5e6e6fd6e1328083af # v1.3
8181

8282
- name: Set version number
8383
id: version

.github/workflows/build-uid2-ami.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ jobs:
135135
path: ./artifacts
136136

137137
- name: Delete staging artifacts
138-
uses: geekyeggo/delete-artifact@v5
138+
uses: geekyeggo/delete-artifact@b54d29a59e55046d1f7fc8226cdda507e6b9cf62 # v5
139139
with:
140140
name: |
141141
uid2_AMI_measurement

.github/workflows/publish-all-operators.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ jobs:
4343
echo "vulnerability_severity=${VULNERABILITY_SEVERITY}" >> $GITHUB_OUTPUT
4444
- name: Approve Major release
4545
if: env.RELEASE_TYPE == 'Major'
46-
uses: trstringer/manual-approval@v1
46+
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
4747
with:
4848
secret: ${{ github.token }}
4949
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang
@@ -208,7 +208,7 @@ jobs:
208208

209209
- name: Build changelog
210210
id: changelog
211-
uses: mikepenz/release-changelog-builder-action@v4
211+
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
212212
with:
213213
toTag: v${{ needs.start.outputs.new_version }}
214214
configurationJson: |
@@ -229,7 +229,7 @@ jobs:
229229
(cd manifests && zip -r ../uid2-operator-release-manifests-${{ needs.start.outputs.new_version }}.zip .)
230230
231231
- name: Create draft release
232-
uses: softprops/action-gh-release@v2
232+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
233233
with:
234234
name: v${{ needs.start.outputs.new_version }}
235235
body: ${{ steps.changelog.outputs.changelog }}
@@ -253,4 +253,4 @@ jobs:
253253
SLACK_MESSAGE: ':x: Operator Pipeline failed'
254254
SLACK_TITLE: Pipeline Failed in ${{ github.workflow }}
255255
SLACK_WEBHOOK: ${{ secrets.SLACK_WEBHOOK }}
256-
uses: rtCamp/action-slack-notify@v2
256+
uses: rtCamp/action-slack-notify@e31e87e03dd19038e411e38ae27cbad084a90661 # v2

.github/workflows/publish-aws-nitro-eif.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@ jobs:
180180
- name: Build changelog
181181
id: github_release
182182
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
183-
uses: mikepenz/release-changelog-builder-action@v4
183+
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
184184
with:
185185
configurationJson: |
186186
{
@@ -192,7 +192,7 @@ jobs:
192192

193193
- name: Create release
194194
if: ${{ inputs.version_number_input == '' && needs.start.outputs.is_release == 'true' }}
195-
uses: softprops/action-gh-release@v2
195+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
196196
with:
197197
name: ${{ needs.start.outputs.new_version }}
198198
body: ${{ steps.github_release.outputs.changelog }}

.github/workflows/publish-azure-cc-enclave-docker.yaml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -101,22 +101,22 @@ jobs:
101101
cp scripts/confidential_compute.py ${{ env.DOCKER_CONTEXT_PATH }}/
102102
103103
- name: Log in to the Docker container registry
104-
uses: docker/login-action@v3
104+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
105105
with:
106106
registry: ${{ env.REGISTRY }}
107107
username: ${{ github.actor }}
108108
password: ${{ secrets.GITHUB_TOKEN }}
109109

110110
- name: Extract metadata (tags, labels) for Docker
111111
id: meta
112-
uses: docker/metadata-action@v5
112+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
113113
with:
114114
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
115115
tags: |
116116
type=raw,value=${{ steps.update_version.outputs.image_tag }}
117117
118118
- name: Build and export to Docker
119-
uses: docker/build-push-action@v5
119+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
120120
with:
121121
context: ${{ env.DOCKER_CONTEXT_PATH }}
122122
load: true
@@ -155,7 +155,7 @@ jobs:
155155

156156
- name: Push to Docker
157157
id: push-to-docker
158-
uses: docker/build-push-action@v5
158+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
159159
with:
160160
context: ${{ env.DOCKER_CONTEXT_PATH }}
161161
push: true

.github/workflows/publish-gcp-oidc-enclave-docker.yaml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -99,47 +99,47 @@ jobs:
9999
cp scripts/confidential_compute.py ${{ env.DOCKER_CONTEXT_PATH }}/
100100
101101
- name: Log in to the Docker container registry
102-
uses: docker/login-action@v3
102+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
103103
with:
104104
registry: ${{ env.REGISTRY }}
105105
username: ${{ github.actor }}
106106
password: ${{ secrets.GITHUB_TOKEN }}
107107

108108
- name: Authenticate with Google Cloud
109109
id: gcp_auth
110-
uses: google-github-actions/auth@v2
110+
uses: google-github-actions/auth@c200f3691d83b41bf9bbd8638997a462592937ed # v2
111111
with:
112112
token_format: access_token
113113
workload_identity_provider: ${{ vars.GCP_WORKLOAD_IDENTITY_PROVIDER_ID }}
114114
service_account: ${{ vars.GCP_SERVICE_ACCOUNT }}
115115
access_token_lifetime: 300s
116116

117117
- name: Log in to the GCP Registry
118-
uses: docker/login-action@v3
118+
uses: docker/login-action@c94ce9fb468520275223c153574b00df6fe4bcc9 # v3
119119
with:
120120
registry: ${{ env.GCP_REGISTRY }}
121121
username: oauth2accesstoken
122122
password: ${{ steps.gcp_auth.outputs.access_token }}
123123

124124
- name: Extract metadata (tags, labels) for Docker
125125
id: meta
126-
uses: docker/metadata-action@v5
126+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
127127
with:
128128
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
129129
tags: |
130130
type=raw,value=${{ steps.update_version.outputs.image_tag }}
131131
132132
- name: Extract metadata (tags, labels) for GCP image
133133
id: meta-gcp
134-
uses: docker/metadata-action@v5
134+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
135135
with:
136136
images: ${{ env.GCP_REGISTRY }}/${{ env.GCP_GAR_PROJECT }}/${{ env.IMAGE_NAME }}
137137
tags: |
138138
type=raw,value=${{ steps.update_version.outputs.image_tag }}
139139
140140
- name: Extract metadata (tags, labels) for all Docker images
141141
id: meta-all
142-
uses: docker/metadata-action@v5
142+
uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5
143143
with:
144144
images: |
145145
${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
@@ -148,7 +148,7 @@ jobs:
148148
type=raw,value=${{ steps.update_version.outputs.new_version }}-${{ env.ENCLAVE_PROTOCOL }}
149149
150150
- name: Build and export to Docker
151-
uses: docker/build-push-action@v5
151+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
152152
with:
153153
context: ${{ env.DOCKER_CONTEXT_PATH }}
154154
load: true
@@ -169,7 +169,7 @@ jobs:
169169

170170
- name: Push to Docker
171171
id: push-to-docker
172-
uses: docker/build-push-action@v5
172+
uses: docker/build-push-action@ca052bb54ab0790a636c9b5f226502c73d547a25 # v5
173173
with:
174174
context: ${{ env.DOCKER_CONTEXT_PATH }}
175175
push: true
@@ -211,7 +211,7 @@ jobs:
211211
- name: Build changelog
212212
id: github_release
213213
if: ${{ inputs.version_number_input == '' && steps.update_version.outputs.is_release == 'true' }}
214-
uses: mikepenz/release-changelog-builder-action@v4
214+
uses: mikepenz/release-changelog-builder-action@32e3c96f29a6532607f638797455e9e98cfc703d # v4
215215
with:
216216
configurationJson: |
217217
{
@@ -223,7 +223,7 @@ jobs:
223223

224224
- name: Create release
225225
if: ${{ inputs.version_number_input == '' && steps.update_version.outputs.is_release == 'true' }}
226-
uses: softprops/action-gh-release@v2
226+
uses: softprops/action-gh-release@153bb8e04406b158c6c84fc1615b65b24149a1fe # v2
227227
with:
228228
name: ${{ steps.update_version.outputs.new_version }}
229229
body: ${{ steps.github_release.outputs.changelog }}

.github/workflows/publish-public-operator-docker-image.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ jobs:
5050
steps:
5151
- name: Approve Major release
5252
if: inputs.release_type == 'Major'
53-
uses: trstringer/manual-approval@v1
53+
uses: trstringer/manual-approval@74d99dff7380e3e4b122d4ededcbca2b6ce59367 # v1
5454
with:
5555
secret: ${{ github.token }}
5656
approvers: atarassov-ttd,vishalegbert-ttd,sunnywu,clarkxuyang

0 commit comments

Comments
 (0)