Skip to content

Commit 1ee242c

Browse files
Merge pull request #1232 from step-security-bot/stepsecurity_remediation_1704718475
[StepSecurity] ci: Harden GitHub Actions
2 parents 164db36 + 212da4d commit 1ee242c

File tree

9 files changed

+28
-28
lines changed

9 files changed

+28
-28
lines changed

.github/workflows/bandit.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414

1515
steps:
1616
- name: Clone the git repo
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1818

1919
- name: Install pip packages
2020
run: pip install -r third_party/requirements.txt

.github/workflows/cmake.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
runs-on: ${{matrix.os}}
3737

3838
steps:
39-
- uses: actions/checkout@v3
39+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
4040

4141
- name: Install apt packages
4242
run: |
@@ -122,7 +122,7 @@ jobs:
122122
runs-on: 'ubuntu-22.04'
123123

124124
steps:
125-
- uses: actions/checkout@v3
125+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
126126

127127
- name: Install pip packages
128128
run: pip install -r third_party/requirements.txt
@@ -174,7 +174,7 @@ jobs:
174174
runs-on: ${{matrix.adapter.name}}
175175

176176
steps:
177-
- uses: actions/checkout@v3
177+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
178178

179179
- name: Install pip packages
180180
run: pip install -r third_party/requirements.txt
@@ -240,13 +240,13 @@ jobs:
240240
runs-on: ${{matrix.adapter.name}}
241241

242242
steps:
243-
- uses: actions/checkout@v3
243+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
244244

245245
- name: Install pip packages
246246
run: pip install -r third_party/requirements.txt
247247

248248
- name: Init conda env
249-
uses: conda-incubator/setup-miniconda@v2
249+
uses: conda-incubator/setup-miniconda@9f54435e0e72c53962ee863144e47a4b094bfd35 # v2.3.0
250250
with:
251251
miniconda-version: "latest"
252252
activate-environment: examples
@@ -306,9 +306,9 @@ jobs:
306306
runs-on: ${{matrix.os}}
307307

308308
steps:
309-
- uses: actions/checkout@v3
309+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
310310

311-
- uses: actions/setup-python@v4
311+
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
312312
with:
313313
python-version: 3.9
314314

@@ -357,9 +357,9 @@ jobs:
357357
runs-on: ${{matrix.os}}
358358

359359
steps:
360-
- uses: actions/checkout@v3
360+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
361361

362-
- uses: actions/setup-python@v4
362+
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
363363
with:
364364
python-version: 3.9
365365

.github/workflows/codeql.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@ jobs:
1818

1919
steps:
2020
- name: Checkout repository
21-
uses: actions/checkout@v3
21+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2222

2323
- name: Initialize CodeQL
24-
uses: github/codeql-action/init@v2
24+
uses: github/codeql-action/init@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
2525
with:
2626
languages: cpp, python
2727

@@ -35,7 +35,7 @@ jobs:
3535
run: cmake --build ${{github.workspace}}/build -j $(nproc)
3636

3737
- name: Perform CodeQL Analysis
38-
uses: github/codeql-action/analyze@v2
38+
uses: github/codeql-action/analyze@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
3939

4040
analyze-windows:
4141
name: Analyze on Windows
@@ -48,10 +48,10 @@ jobs:
4848

4949
steps:
5050
- name: Checkout repository
51-
uses: actions/checkout@v3
51+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
5252

5353
- name: Initialize CodeQL
54-
uses: github/codeql-action/init@v2
54+
uses: github/codeql-action/init@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12
5555
with:
5656
languages: cpp, python
5757

@@ -65,4 +65,4 @@ jobs:
6565
run: cmake --build ${{github.workspace}}/build -j $(nproc) --config Release
6666

6767
- name: Perform CodeQL Analysis
68-
uses: github/codeql-action/analyze@v2
68+
uses: github/codeql-action/analyze@1500a131381b66de0c52ac28abb13cd79f4b7ecc # v2.22.12

.github/workflows/coverage.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: ${{matrix.os}}
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2020

2121
- name: Install apt packages
2222
run: |
@@ -72,7 +72,7 @@ jobs:
7272
run: ctest -T Coverage
7373

7474
- name: Upload coverage to Codecov
75-
uses: codecov/codecov-action@v3
75+
uses: codecov/codecov-action@eaaf4bedf32dbdc6b720b63067d99c4d77d6047d # v3.1.4
7676
with:
7777
gcov: true
7878
gcov_include: source

.github/workflows/coverity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131

3232
steps:
3333
- name: Clone the git repo
34-
uses: actions/checkout@v3
34+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3535

3636
- name: Install pip packages
3737
run: pip install -r third_party/requirements.txt

.github/workflows/docs.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
runs-on: ubuntu-latest
2727
steps:
2828
- name: Checkout
29-
uses: actions/checkout@v3
29+
uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
3030

31-
- uses: actions/setup-python@v4
31+
- uses: actions/setup-python@65d7f2d534ac1bc67fcd62888c5f4f3d2cb2b236 # v4.7.1
3232
with:
3333
python-version: 3.9
3434

@@ -41,14 +41,14 @@ jobs:
4141
run: python3 -m pip install -r third_party/requirements.txt
4242

4343
- name: Setup Pages
44-
uses: actions/configure-pages@v2
44+
uses: actions/configure-pages@c5a3e1159e0cbdf0845eb8811bd39e39fc3099c2 # v2.1.3
4545

4646
- name: Build Documentation
4747
working-directory: ${{github.workspace}}/scripts
4848
run: python3 run.py --core
4949

5050
- name: Upload artifact
51-
uses: actions/upload-pages-artifact@v1
51+
uses: actions/upload-pages-artifact@84bb4cd4b733d5c320c9c9cfbc354937524f4d64 # v1.0.10
5252
with:
5353
path: ${{github.workspace}}/docs/html
5454

@@ -62,4 +62,4 @@ jobs:
6262
steps:
6363
- name: Deploy to GitHub Pages
6464
id: deployment
65-
uses: actions/deploy-pages@v1
65+
uses: actions/deploy-pages@f27bcc15848fdcdcc02f01754eb838e44bcf389b # v1.2.9

.github/workflows/e2e_nightly.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,12 @@ jobs:
2929
rm -rf ./* || true
3030
3131
- name: Checkout UR
32-
uses: actions/checkout@v4
32+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3333
with:
3434
path: ur-repo
3535

3636
- name: Checkout SYCL
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1
3838
with:
3939
repository: intel/llvm
4040
ref: sycl

.github/workflows/nightly.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
runs-on: 'ubuntu-22.04'
1717

1818
steps:
19-
- uses: actions/checkout@v3
19+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
2020

2121
- name: Install pip packages
2222
run: pip install -r third_party/requirements.txt

.github/workflows/prerelease.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
permissions:
1313
contents: write
1414
steps:
15-
- uses: actions/checkout@v3
15+
- uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # v3.6.0
1616

1717
- name: Create weekly prerelease
1818
run:

0 commit comments

Comments
 (0)