Skip to content

Commit 983d55e

Browse files
committed
ci: pin all GitHub Actions to full commit SHAs
Pin all action dependencies to their full commit SHA
1 parent 1b705ab commit 983d55e

File tree

7 files changed

+27
-27
lines changed

7 files changed

+27
-27
lines changed

.github/workflows/build-windows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@ jobs:
88
run:
99
shell: msys2 {0}
1010
steps:
11-
- uses: actions/checkout@v4
11+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1212
with:
1313
fetch-depth: 0
14-
- uses: msys2/setup-msys2@v2
14+
- uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0
1515
with:
1616
msystem: MINGW64
1717
update: true
@@ -31,7 +31,7 @@ jobs:
3131
cd build
3232
ctest --output-on-failure
3333
- name: Upload artifact
34-
uses: actions/upload-artifact@v4
34+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
3535
with:
3636
name: headsetcontrol.exe
3737
path: build/headsetcontrol.exe

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -33,14 +33,14 @@ jobs:
3333
shell: msys2 {0}
3434

3535
steps:
36-
- uses: actions/checkout@v4
36+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
3737
with:
3838
fetch-depth: 0
3939

4040
# Windows: Setup MSYS2
4141
- name: Setup MSYS2
4242
if: runner.os == 'Windows'
43-
uses: msys2/setup-msys2@v2
43+
uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0
4444
with:
4545
msystem: MINGW64
4646
update: true
@@ -49,7 +49,7 @@ jobs:
4949
# Linux/macOS: Setup CMake and Ninja
5050
- name: Setup CMake and Ninja
5151
if: runner.os != 'Windows'
52-
uses: lukka/get-cmake@latest
52+
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # v4.2.1
5353

5454
# Linux: Install GCC 13 for C++20 support
5555
- name: Install GCC 13 (Ubuntu)
@@ -70,7 +70,7 @@ jobs:
7070
# Linux/macOS: Build with CMake Presets
7171
- name: Build and test (Unix)
7272
if: runner.os != 'Windows'
73-
uses: lukka/run-cmake@v10
73+
uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
7474
with:
7575
configurePreset: 'default'
7676
buildPreset: 'default'

.github/workflows/check-whitespace.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
shell: bash
1616
run: echo "COMMIT_DEPTH=$((1 + ${{ github.event.pull_request.commits }}))" >> $GITHUB_ENV
1717

18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
1919
with:
2020
fetch-depth: ${{ env.COMMIT_DEPTH }}
2121

@@ -41,7 +41,7 @@ jobs:
4141
4242
- name: Post PR comment
4343
if: steps.check.outputs.has_errors == 'true'
44-
uses: actions/github-script@v7
44+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7.1.0
4545
with:
4646
script: |
4747
const fs = require('fs');

.github/workflows/clang-format.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
contents: read
1717
pull-requests: write
1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
with:
2121
fetch-depth: 0
2222

2323
- name: Run cpp-linter
24-
uses: cpp-linter/cpp-linter-action@v2
24+
uses: cpp-linter/cpp-linter-action@b6edc0625e3941baa1797f4b4326adeab6890c97 # v2.16.7
2525
id: linter
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/continuos-release.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,14 @@ jobs:
5656
build_type: unix
5757

5858
steps:
59-
- uses: actions/checkout@v4
59+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
6060
with:
6161
fetch-depth: 0
6262

6363
# =========== Linux Setup ===========
6464
- name: Cache apt packages
6565
if: matrix.os_name == 'linux'
66-
uses: actions/cache@v4
66+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
6767
with:
6868
path: /var/cache/apt/archives
6969
key: ${{ runner.os }}-apt-${{ hashFiles('.github/workflows/continuos-release.yml') }}
@@ -87,7 +87,7 @@ jobs:
8787
# =========== macOS Setup ===========
8888
- name: Cache Homebrew
8989
if: matrix.os_name == 'macos'
90-
uses: actions/cache@v4
90+
uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0
9191
with:
9292
path: |
9393
~/Library/Caches/Homebrew
@@ -104,7 +104,7 @@ jobs:
104104
# =========== Windows MinGW Setup ===========
105105
- name: Setup MSYS2 (MinGW)
106106
if: matrix.build_type == 'mingw'
107-
uses: msys2/setup-msys2@v2
107+
uses: msys2/setup-msys2@4f806de0a5a7294ffabaff804b38a9b435a73bda # v2.30.0
108108
with:
109109
msystem: MINGW64
110110
update: true
@@ -113,19 +113,19 @@ jobs:
113113
# =========== Windows MSVC Setup ===========
114114
- name: Setup vcpkg (MSVC)
115115
if: matrix.build_type == 'msvc'
116-
uses: lukka/run-vcpkg@v11
116+
uses: lukka/run-vcpkg@5e0cab206a5ea620130caf672fce3e4a6b5666a1 # v11.5
117117
with:
118118
vcpkgGitCommitId: '01f602195983451bc83e72f4214af2cbc495aa94' # 2024.05.24
119119
vcpkgJsonGlob: 'vcpkg.json'
120120

121121
- name: Setup CMake and Ninja (MSVC)
122122
if: matrix.build_type == 'msvc'
123-
uses: lukka/get-cmake@latest
123+
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # v4.2.1
124124

125125
# =========== Linux/macOS CMake Setup ===========
126126
- name: Setup CMake and Ninja (Unix)
127127
if: matrix.build_type == 'unix'
128-
uses: lukka/get-cmake@latest
128+
uses: lukka/get-cmake@9e07ecdcee1b12e5037e42f410b67f03e2f626e1 # v4.2.1
129129

130130
# =========== Build Steps ===========
131131

@@ -143,7 +143,7 @@ jobs:
143143
# Windows MSVC Build
144144
- name: Build and test (Windows MSVC)
145145
if: matrix.build_type == 'msvc'
146-
uses: lukka/run-cmake@v10
146+
uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
147147
with:
148148
configurePreset: 'windows-msvc'
149149
buildPreset: 'windows-msvc'
@@ -152,7 +152,7 @@ jobs:
152152
# Linux/macOS Build
153153
- name: Build and test (Unix)
154154
if: matrix.build_type == 'unix'
155-
uses: lukka/run-cmake@v10
155+
uses: lukka/run-cmake@af1be47fd7c933593f687731bc6fdbee024d3ff4 # v10.8
156156
with:
157157
configurePreset: 'default'
158158
buildPreset: 'default'
@@ -196,7 +196,7 @@ jobs:
196196
197197
- name: Upload build artifacts (MinGW/Unix)
198198
if: matrix.build_type != 'msvc'
199-
uses: actions/upload-artifact@v4
199+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
200200
with:
201201
name: headsetcontrol-${{ matrix.os_name }}-${{ matrix.architecture }}
202202
path: |
@@ -206,7 +206,7 @@ jobs:
206206

207207
- name: Upload build artifacts (MSVC)
208208
if: matrix.build_type == 'msvc'
209-
uses: actions/upload-artifact@v4
209+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
210210
with:
211211
name: headsetcontrol-${{ matrix.os_name }}-${{ matrix.architecture }}
212212
path: |
@@ -220,12 +220,12 @@ jobs:
220220
permissions:
221221
contents: write
222222
steps:
223-
- uses: actions/checkout@v4
223+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
224224
with:
225225
fetch-depth: 0
226226

227227
- name: Download all artifacts
228-
uses: actions/download-artifact@v4
228+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
229229
with:
230230
merge-multiple: true
231231
path: ./artifacts
@@ -279,7 +279,7 @@ jobs:
279279
echo "*Built from commit: \`${{ github.sha }}\`*" >> CHANGELOG.md
280280
281281
- name: Create/Update continuous release
282-
uses: ncipollo/release-action@v1
282+
uses: ncipollo/release-action@b7eabc95ff50cbeeedec83973935c8f306dfcd0b # v1.20.0
283283
with:
284284
tag: continuous
285285
name: 'Continuous Build'

.github/workflows/repo-device-requested.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
issues: write
1212
steps:
1313
- name: Add comment
14-
uses: peter-evans/create-or-update-comment@v3
14+
uses: peter-evans/create-or-update-comment@23ff15729ef2fc348714a3bb66d2f655ca9066f2 # v3.1.0
1515
with:
1616
issue-number: ${{ github.event.issue.number }}
1717
body: |

.github/workflows/repo-stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
stale:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/stale@v8
10+
- uses: actions/stale@1160a2240286f5da8ec72b1c0816ce2481aabf84 # v8.0.0
1111
with:
1212
stale-issue-message: 'This issue is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 60 days.'
1313
stale-pr-message: 'This PR is stale because it has been open 300 days with no activity. Remove stale label or comment or this will be closed in 60 days.'

0 commit comments

Comments
 (0)