Skip to content

Commit d6cb804

Browse files
authored
Pin github actions to sha (#6774)
## Summary of changes Pins the action used inside our custom actions to sha ## Reason for change We pinned all the actions that are used in workflows, but we should pin the ones used in actions too ## Implementation details - Check what the current version is, grab the sha, use it - Didn't update the version at all, just used whatever we're _currently_ pinned to ## Test coverage Nope
1 parent d514fef commit d6cb804

File tree

4 files changed

+7
-7
lines changed

4 files changed

+7
-7
lines changed

.github/actions/code-freeze/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ inputs:
1515
runs:
1616
using: "composite"
1717
steps:
18-
- uses: octokit/request-action@v2.x
18+
- uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
1919
name: 'Get open PRs'
2020
id: prs
2121
with:

.github/actions/create-system-test-docker-base-images/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,18 +33,18 @@ runs:
3333
cp ./tracer/build/_build/docker/system-tests.dockerfile ${{inputs.artifacts_path}}
3434
3535
- name: Set up QEMU
36-
uses: docker/setup-qemu-action@v2
36+
uses: docker/setup-qemu-action@2b82ce82d56a2a04d2637cd93a637ae1b359c0a7 # v2.2.0
3737

3838
- name: Set up Docker Buildx
3939
id: buildx
40-
uses: docker/setup-buildx-action@v2
40+
uses: docker/setup-buildx-action@885d1462b80bc1c1c7f0b00334ad271f09369c55 #v2.10.0
4141

4242
- name: Login to Docker
4343
shell: bash
4444
run: docker login -u publisher -p ${{ inputs.github_token }} ghcr.io
4545

4646
- name: Docker Build linux-x64 and linux-arm64 images
47-
uses: docker/build-push-action@v3
47+
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a # v2.10.0
4848
with:
4949
push: true
5050
tags: ghcr.io/datadog/dd-trace-dotnet/dd-trace-dotnet:latest_snapshot

.github/actions/publish-debug-symbols/action.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,13 @@ runs:
1919
steps:
2020
# datadog-ci needs the version 20 (https://github.com/DataDog/profiling-backend/blob/prod/debug-symbol-upload/Dockerfile#L6)
2121
- name: Install Node
22-
uses: actions/setup-node@v4
22+
uses: actions/setup-node@cdca7365b2dadb8aad0a33bc7601856ffabcc48e # v4.3.0
2323
with:
2424
node-version: 20
2525

2626
# Use the same go version as in https://github.com/DataDog/profiling-backend/blob/prod/debug-symbol-upload/Dockerfile#L21
2727
- name: Install Go
28-
uses: actions/setup-go@v5
28+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5.3.0
2929
with:
3030
go-version: '^1.22.3'
3131

.github/workflows/create_skip_code_freeze.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212

1313
steps:
14-
- uses: octokit/request-action@v2.x
14+
- uses: octokit/request-action@dad4362715b7fb2ddedf9772c8670824af564f0d # v2.4.0
1515
name: 'Open Skip Milestone'
1616
with:
1717
route: PATCH /repos/{owner}/{repo}/milestones/2

0 commit comments

Comments
 (0)