Skip to content

Commit ac41a1b

Browse files
committed
[ACIX-1926] chore(ci): pin GitHub Actions to commit SHAs
Mechanical rewrite of every `uses:` reference to a full-length commit SHA, produced by [pinact](https://github.com/suzuki-shunsuke/pinact). An unpinned reference resolves to a mutable ref, so a compromise of the upstream action becomes code execution in this repository's CI. The trailing `# vX.Y.Z` comment is what lets Renovate and Dependabot keep these bumped, so please keep it. **One thing to check:** references that tracked `@main` or `@master` were resolved to the latest stable tag. If any of them floated deliberately and that behaviour was load-bearing here, say so on the PR and we will revert that line.
1 parent 6fe025d commit ac41a1b

9 files changed

Lines changed: 16 additions & 16 deletions

.github/workflows/add-dependabot-pr-to-mq.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
scope: DataDog/datadog-agent
2424
policy: self.add-dependabot-pr-to-mq.comment-pr
2525
- name: Check if the PR is mergeable
26-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
26+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
2727
id: check-mergeable
2828
with:
2929
github-token: ${{ steps.octo-sts.outputs.token }}
@@ -51,7 +51,7 @@ jobs:
5151
result-encoding: string
5252
- name: Add Merge Comment to Pull Request
5353
if: ${{ steps.check-mergeable.outputs.result == 'true' }}
54-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
54+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
5555
with:
5656
github-token: ${{ steps.octo-sts.outputs.token }}
5757
script: |

.github/workflows/add-label-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ jobs:
3838
with:
3939
features: legacy-tasks
4040
- name: Add the internal label
41-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
41+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4242
with:
4343
github-token: ${{ steps.octo-sts.outputs.token }}
4444
script: |

.github/workflows/agenttelemetry-metric-reminder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
if: github.triggering_actor != 'dd-devflow[bot]'
2626
runs-on: ubuntu-latest
2727
steps:
28-
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
28+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
2929
with:
3030
script: |
3131
const marker = '<!-- coat-metric-reminder -->';

.github/workflows/check-issue-status.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: Check if the latest comment is from a datadog member
3030
id: datadog-comment
31-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
31+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
3232
with:
3333
github-token: ${{ steps.octo-sts.outputs.token }}
3434
result-encoding: string
@@ -76,7 +76,7 @@ jobs:
7676
}
7777
- name: Remove the pending label when issue is commented
7878
if: steps.datadog-comment.outputs.result == 'true'
79-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
79+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
8080
with:
8181
github-token: ${{ steps.octo-sts.outputs.token }}
8282
script: |
@@ -100,7 +100,7 @@ jobs:
100100
}
101101
- name: Remove the "waiting on author" label when issue is commented
102102
if: steps.datadog-comment.outputs.result == 'false'
103-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
103+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
104104
with:
105105
github-token: ${{ steps.octo-sts.outputs.token }}
106106
script: |
@@ -123,7 +123,7 @@ jobs:
123123
}
124124
}
125125
- name: Remove the team/triage label if another team label exists
126-
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
126+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
127127
with:
128128
github-token: ${{ steps.octo-sts.outputs.token }}
129129
script: |

.github/workflows/codex-review-draft.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
permissions:
1818
pull-requests: write
1919
steps:
20-
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
20+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
2121
with:
2222
script: |
2323
github.rest.issues.createComment({

.github/workflows/docs-dev.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
# build image pinned in .gitlab-ci.yml, so that file changing is the only reason to fetch again.
4343
- name: Restore fetched documentation content
4444
id: docs-content
45-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
45+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
4646
with:
4747
path: .docs-cache
4848
key: docs-content-${{ hashFiles('.gitlab-ci.yml', 'docs/public/.hooks/inject_variables.py') }}
4949

5050
# Restoring the most recent results, which `cache` in .lychee.toml tells the checker to keep,
5151
# means a host that is briefly unreachable does not fail the run.
5252
- name: Restore link check results
53-
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
53+
uses: actions/cache/restore@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
5454
with:
5555
path: .lycheecache
5656
key: docs-links-${{ github.run_id }}
@@ -71,7 +71,7 @@ jobs:
7171
# that fails on an unrelated link is exactly when the next one benefits from not fetching again.
7272
- name: Save fetched documentation content
7373
if: always() && steps.docs-content.outputs.cache-hit != 'true'
74-
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
74+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
7575
with:
7676
path: .docs-cache
7777
key: docs-content-${{ hashFiles('.gitlab-ci.yml', 'docs/public/.hooks/inject_variables.py') }}
@@ -80,7 +80,7 @@ jobs:
8080
# which is what a re-run of it restores.
8181
- name: Save link check results
8282
if: always()
83-
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4
83+
uses: actions/cache/save@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
8484
with:
8585
path: .lycheecache
8686
key: docs-links-${{ github.run_id }}

.github/workflows/go-update-commenter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ jobs:
6363
} >> $GITHUB_OUTPUT
6464
6565
# and display it
66-
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9
66+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
6767
env:
6868
# We need to store the output in an environment variable and not use it directly in the createComment,
6969
# as it will likely not be a valid JS string (eg. if it contains a quote character)

.github/workflows/report-merged-pr.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
4949
- name: Get Datadog credentials
5050
id: dd-sts
51-
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75
51+
uses: DataDog/dd-sts-action@2e8187910199bd93129520183c093e19aa585c75 # v1.0.0
5252
with:
5353
policy: datadog-agent-report-pr
5454

.github/workflows/update-kubernetes-versions.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
run: pip install requests==2.33.1 pyyaml==6.0.3 semver==3.0.4
4848

4949
- name: Install kind
50-
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc #v1.14.0
50+
uses: helm/kind-action@ef37e7f390d99f746eb8b610417061a60e82a6cc # v1.14.0
5151
with:
5252
install_only: true
5353

0 commit comments

Comments
 (0)