Skip to content

Commit 720f841

Browse files
authored
Merge pull request #970 from openzim/fix-ci-warnings
Fix CI GitHub warnings
2 parents bc365ee + 2ef60ed commit 720f841

File tree

1 file changed

+16
-16
lines changed

1 file changed

+16
-16
lines changed

.github/workflows/ci.yml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -41,28 +41,28 @@ jobs:
4141

4242
steps:
4343
- name: Harden Runner
44-
uses: step-security/harden-runner@v2
44+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2
4545
with:
4646
egress-policy: audit
4747

4848
- name: Checkout code
49-
uses: actions/checkout@v4
49+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5050

5151
- name: Setup Python 3.10
52-
uses: actions/setup-python@v5
52+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
5353
with:
5454
python-version: '3.10'
5555

5656
- name: Install packages
5757
run: |
5858
brew update
59-
brew install gcovr ninja || brew link --overwrite python
59+
brew install gcovr || brew link --overwrite python # ninja
6060
6161
- name: Install Python modules
6262
run: pip3 install meson pytest
6363

6464
- name: Install dependencies
65-
uses: kiwix/kiwix-build/actions/dl_deps_archive@main
65+
uses: kiwix/kiwix-build/actions/dl_deps_archive@77592b12ffa8f2b51f9b28e6f34643eb2d99ac62 # main
6666
with:
6767
target_platform: ${{ matrix.target }}
6868

@@ -102,15 +102,15 @@ jobs:
102102

103103
steps:
104104
- name: Harden Runner
105-
uses: step-security/harden-runner@v2
105+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2
106106
with:
107107
egress-policy: audit
108108

109109
- name: Checkout code
110-
uses: actions/checkout@v4
110+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
111111

112112
- name: Setup python 3.10
113-
uses: actions/setup-python@v5
113+
uses: actions/setup-python@8d9ed9ac5c53483de85588cdf95a591a75ab9f55 # v5
114114
with:
115115
python-version: '3.10'
116116

@@ -122,12 +122,12 @@ jobs:
122122
run: pip3 install meson
123123

124124
- name: Setup MSVC compiler
125-
uses: bus1/cabuild/action/msdevshell@v1
125+
uses: bus1/cabuild/action/msdevshell@e22aba57d6e74891d059d66501b6b5aed8123c4d # v1
126126
with:
127127
architecture: x64
128128

129129
- name: Install dependencies
130-
uses: kiwix/kiwix-build/actions/dl_deps_archive@main
130+
uses: kiwix/kiwix-build/actions/dl_deps_archive@77592b12ffa8f2b51f9b28e6f34643eb2d99ac62 # main
131131
with:
132132
target_platform: win-x86_64-dyn
133133

@@ -215,18 +215,18 @@ jobs:
215215

216216
steps:
217217
- name: Harden Runner
218-
uses: step-security/harden-runner@v2
218+
uses: step-security/harden-runner@c6295a65d1254861815972266d5933fd6e532bdf # v2
219219
with:
220220
egress-policy: audit
221221

222222
- name: Install dependencies
223223
if: ${{ !contains(matrix.target, 'musl') }}
224-
uses: kiwix/kiwix-build/actions/dl_deps_archive@main
224+
uses: kiwix/kiwix-build/actions/dl_deps_archive@77592b12ffa8f2b51f9b28e6f34643eb2d99ac62 # main
225225
with:
226226
target_platform: ${{ matrix.target }}
227227

228228
- name: Retrieve source code
229-
uses: actions/checkout@v4
229+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
230230

231231
- name: Compile source code
232232
shell: bash
@@ -277,10 +277,10 @@ jobs:
277277
fi
278278
279279
- name: Upload code coverage
280-
uses: codecov/codecov-action@5ecb98a3c6b747ed38dc09f787459979aebb39be # v4.3.1
280+
uses: codecov/codecov-action@ad3126e916f78f00edff4ed0317cf185271ccc2d # v5
281281
if: matrix.coverage
282282
with:
283-
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
283+
token: ${{ secrets.CODECOV_TOKEN }}
284284

285285
OSSF-Scorecard:
286286
name: OSSF Scorecard
@@ -337,6 +337,6 @@ jobs:
337337
# Upload the results to GitHub's code scanning dashboard (optional).
338338
# Commenting out will disable upload of results to your repo's Code Scanning dashboard
339339
- name: "Upload to code-scanning"
340-
uses: github/codeql-action/upload-sarif@v3
340+
uses: github/codeql-action/upload-sarif@45775bd8235c68ba998cffa5171334d58593da47 # v3
341341
with:
342342
sarif_file: results.sarif

0 commit comments

Comments
 (0)