Skip to content

Commit 4faf22a

Browse files
ci: Pin GitHub Actions to specific commit SHAs (#561)
1 parent 9a30b44 commit 4faf22a

12 files changed

Lines changed: 24 additions & 24 deletions

.github/workflows/__call-codeql.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,7 @@ jobs:
217217
upload: failure-only
218218

219219
- name: filter-sarif
220-
uses: advanced-security/filter-sarif@v1
220+
uses: advanced-security/filter-sarif@f3b8118a9349d88f7b1c0c488476411145b6270d # v1.0.1
221221
with:
222222
input: sarif-results/${{ matrix.language }}.sarif
223223
output: sarif-results/${{ matrix.language }}.sarif

.github/workflows/__call-common-lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ jobs:
176176
177177
- name: check-trailing-spaces
178178
if: always()
179-
uses: marcopaganini/check-trailing-spaces@v2.0.0
179+
uses: marcopaganini/check-trailing-spaces@8cb92e10874ed9bd54d89f2848f98308242527bd # v2.0.0
180180

181181
- name: C++ - find files
182182
id: cpp_files
@@ -224,7 +224,7 @@ jobs:
224224
- name: C++ - Clang format (diff)
225225
id: clang_format_diff
226226
if: always() && steps.cpp_files.outputs.found_files
227-
uses: DoozyX/clang-format-lint-action@v0.20
227+
uses: DoozyX/clang-format-lint-action@bcb4eb2cb0d707ee4f3e5cc3b456eb075f12cf73 # v0.20
228228
with:
229229
source: ${{ steps.cpp_files.outputs.found_files }}
230230
clangFormatVersion: '${{ env.CLANG_FORMAT_VERSION }}'
@@ -470,7 +470,7 @@ jobs:
470470
471471
- name: Setup Rust
472472
if: always() && steps.run_cargo.outputs.found_cargo == 'true'
473-
uses: actions-rust-lang/setup-rust-toolchain@v1.15.2
473+
uses: actions-rust-lang/setup-rust-toolchain@1780873c7b576612439a134613cc4cc74ce5538c # v1.15.2
474474
with:
475475
components: 'rustfmt'
476476
cache: false

.github/workflows/__call-docker.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,11 +229,11 @@ jobs:
229229
} >> "${GITHUB_OUTPUT}"
230230
231231
- name: Set Up QEMU
232-
uses: docker/setup-qemu-action@v3
232+
uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0
233233

234234
- name: Set up Docker Buildx
235235
id: buildx
236-
uses: docker/setup-buildx-action@v3
236+
uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1
237237

238238
- name: Cache Docker Layers
239239
uses: actions/cache@v4
@@ -245,14 +245,14 @@ jobs:
245245
246246
- name: Log in to Docker Hub
247247
if: inputs.publish_release == 'true' # PRs do not have access to secrets
248-
uses: docker/login-action@v3
248+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
249249
with:
250250
username: ${{ secrets.DOCKER_HUB_USERNAME }}
251251
password: ${{ secrets.DOCKER_HUB_ACCESS_TOKEN }}
252252

253253
- name: Log in to the Container registry
254254
if: inputs.publish_release == 'true' # PRs do not have access to secrets
255-
uses: docker/login-action@v3
255+
uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0
256256
with:
257257
registry: ghcr.io
258258
username: ${{ secrets.GH_BOT_NAME }}
@@ -267,7 +267,7 @@ jobs:
267267
268268
- name: Build and push
269269
id: build
270-
uses: docker/build-push-action@v6
270+
uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0
271271
with:
272272
context: ./
273273
file: ${{ matrix.dockerfile }}
@@ -336,7 +336,7 @@ jobs:
336336
sparse-checkout-cone-mode: false
337337

338338
- name: Update Docker Hub Description
339-
uses: peter-evans/dockerhub-description@v5
339+
uses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfa # v5.0.0
340340
with:
341341
username: ${{ secrets.DOCKER_HUB_USERNAME }}
342342
password: ${{ secrets.DOCKER_HUB_PASSWORD }} # token is not currently supported

.github/workflows/__call-release-notifier.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@ jobs:
118118
if: >-
119119
steps.check-label.outputs.hasTopic == 'true' &&
120120
steps.check-release.outputs.isLatestRelease == 'true'
121-
uses: peter-evans/create-pull-request@v7
121+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
122122
with:
123123
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
124124
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"

.github/workflows/__call-update-flathub-repo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ jobs:
102102
if: >-
103103
steps.check-label.outputs.hasTopic == 'true' &&
104104
steps.check-release.outputs.isLatestRelease == 'true'
105-
uses: robinraju/release-downloader@v1.12
105+
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
106106
with:
107107
repository: "${{ github.repository }}"
108108
tag: "${{ github.event.release.tag_name }}"
@@ -156,7 +156,7 @@ jobs:
156156
steps.check-label.outputs.hasTopic == 'true' &&
157157
steps.check-release.outputs.isLatestRelease == 'true' &&
158158
fromJson(steps.download.outputs.downloaded_files)[0]
159-
uses: peter-evans/create-pull-request@v7
159+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
160160
with:
161161
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
162162
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"

.github/workflows/__call-update-homebrew-repo.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ jobs:
4444
- name: Download release asset
4545
id: download
4646
if: steps.check-label.outputs.hasTopic == 'true'
47-
uses: robinraju/release-downloader@v1.12
47+
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
4848
with:
4949
repository: "${{ github.repository }}"
5050
tag: "${{ github.event.release.tag_name }}"

.github/workflows/__call-update-pacman-repo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ jobs:
7676
if: >-
7777
steps.check-label.outputs.hasTopic == 'true' &&
7878
steps.check-release.outputs.isLatestRelease == 'true'
79-
uses: robinraju/release-downloader@v1.12
79+
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
8080
with:
8181
repository: "${{ github.repository }}"
8282
tag: "${{ github.event.release.tag_name }}"
@@ -99,7 +99,7 @@ jobs:
9999
steps.check-label.outputs.hasTopic == 'true' &&
100100
steps.check-release.outputs.isLatestRelease == 'true' &&
101101
fromJson(steps.download.outputs.downloaded_files)[0]
102-
uses: peter-evans/create-pull-request@v7
102+
uses: peter-evans/create-pull-request@84ae59a2cdc2258d6fa0732dd66352dddae2a412 # v7.0.9
103103
with:
104104
author: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"
105105
committer: "${{ secrets.GH_NAME }} <${{ secrets.GH_EMAIL }}>"

.github/workflows/__call-update-winget-repo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ jobs:
4646
- name: Download release asset
4747
id: download
4848
if: steps.check-label.outputs.hasTopic == 'true'
49-
uses: robinraju/release-downloader@v1.12
49+
uses: robinraju/release-downloader@daf26c55d821e836577a15f77d86ddc078948b05 # v1.12
5050
with:
5151
repository: "${{ github.repository }}"
5252
tag: "${{ github.event.release.tag_name }}"
@@ -60,7 +60,7 @@ jobs:
6060
if: >-
6161
steps.check-label.outputs.hasTopic == 'true' &&
6262
fromJson(steps.download.outputs.downloaded_files)[0]
63-
uses: vedantmgoyal2009/winget-releaser@v2
63+
uses: vedantmgoyal2009/winget-releaser@4ffc7888bffd451b357355dc214d43bb9f23917e # v2
6464
with:
6565
identifier: "${{ github.repository_owner }}.${{ github.event.repository.name }}"
6666
release-tag: ${{ github.event.release.tag_name }}

.github/workflows/__cla-gist-replicator.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
uses: actions/checkout@v6
3232

3333
- name: Deploy Gist
34-
uses: exuanbo/actions-deploy-gist@v1
34+
uses: exuanbo/actions-deploy-gist@47697fceaeea2006a90594ee24eb9cd0a1121ef8 # v1.1.4
3535
with:
3636
token: ${{ secrets.GH_BOT_TOKEN }}
3737
gist_id: ${{ secrets.CLA_GIST_ID }}

.github/workflows/__social-post.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ jobs:
4949
runs-on: ubuntu-latest
5050
steps:
5151
- name: discord
52-
uses: sarisia/actions-status-discord@v1
52+
uses: sarisia/actions-status-discord@b8381b25576cb341b2af39926ab42c5056cc44ed # v1.15.5
5353
with:
5454
avatar_url: ${{ vars.ORG_LOGO_URL }}256
5555
color: 0x${{ vars.COLOR_HEX_GREEN }}
@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ubuntu-latest
8282
steps:
8383
- name: reddit
84-
uses: bluwy/release-for-reddit-action@v2
84+
uses: bluwy/release-for-reddit-action@b4ee0e0d64da893e0428912aac5cda675082bd85 # v2
8585
with:
8686
username: ${{ secrets.REDDIT_USERNAME }}
8787
password: ${{ secrets.REDDIT_PASSWORD }}
@@ -98,7 +98,7 @@ jobs:
9898
runs-on: ubuntu-latest
9999
steps:
100100
- name: x
101-
uses: nearform-actions/github-action-notify-twitter@v1
101+
uses: nearform-actions/github-action-notify-twitter@b3fa623c2f320117e8a08e20564c4ce0a5e67930 # v1.2.3
102102
# alternative: noweh/post-tweet-v2-action@v1.0
103103
with:
104104
message: "${{ inputs.title }}: ${{ inputs.body }}"

0 commit comments

Comments
 (0)