Skip to content

Commit a0f71db

Browse files
Pin GitHub Actions to commit SHAs
1 parent 81c8723 commit a0f71db

20 files changed

Lines changed: 72 additions & 70 deletions

.github/dependabot.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,6 @@ updates:
55
directory: "/"
66
schedule:
77
# Check for updates to GitHub Actions every week
8-
interval: "weekly"
8+
interval: "weekly"
9+
cooldown:
10+
default-days: 7

.github/workflows/code-scanning-pack-gen.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ jobs:
2727
matrix: ${{ steps.export-code-scanning-pack-matrix.outputs.matrix }}
2828
steps:
2929
- name: Checkout repository
30-
uses: actions/checkout@v6
30+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
3131
- name: Export Code Scanning pack matrix
3232
id: export-code-scanning-pack-matrix
3333
run: |
@@ -43,11 +43,11 @@ jobs:
4343
fail-fast: false
4444
matrix: ${{ fromJSON(needs.prepare-code-scanning-pack-matrix.outputs.matrix) }}
4545
steps:
46-
- uses: actions/checkout@v6
46+
- uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
4747

4848
- name: Cache CodeQL
4949
id: cache-codeql
50-
uses: actions/cache@v5
50+
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
5151
with:
5252
path: ${{ github.workspace }}/codeql_home
5353
key: codeql-home-${{ matrix.os }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library }}
@@ -63,7 +63,7 @@ jobs:
6363

6464
- name: Cache queries compilation
6565
id: cache-queries-compilation
66-
uses: actions/cache/restore@v6
66+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
6767
with:
6868
path: ${{ github.workspace }}/codeql_cache
6969
key: ${{ runner.os }}-codeql-compilation-code-scanning-pack-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library }}-${{ github.run_id }}
@@ -92,7 +92,7 @@ jobs:
9292
id: checkout-external-help-files
9393
# PRs from forks and dependabot do not have access to an appropriate token for cloning the help files repos
9494
if: ${{ !github.event.pull_request.head.repo.fork && github.actor != 'dependabot[bot]' }}
95-
uses: actions/checkout@v6
95+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
9696
with:
9797
ssh-key: ${{ secrets.CODEQL_CODING_STANDARDS_HELP_KEY }}
9898
repository: "github/codeql-coding-standards-help"
@@ -124,13 +124,13 @@ jobs:
124124
zip -r codeql-coding-standards/code-scanning-cpp-query-pack.zip codeql-coding-standards/c/ codeql-coding-standards/cpp/ codeql-coding-standards/.codeqlmanifest.json codeql-coding-standards/supported_codeql_configs.json codeql-coding-standards/scripts/configuration codeql-coding-standards/scripts/reports codeql-coding-standards/scripts/shared codeql-coding-standards/scripts/guideline_recategorization codeql-coding-standards/schemas
125125
126126
- name: Save queries compilation cache
127-
uses: actions/cache/save@v6
127+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
128128
with:
129129
path: ${{ github.workspace }}/codeql_cache
130130
key: ${{ steps.cache-queries-compilation.outputs.cache-primary-key }}
131131

132132
- name: Upload GHAS Query Pack
133-
uses: actions/upload-artifact@v7
133+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
134134
with:
135135
name: code-scanning-cpp-query-pack.zip
136136
path: code-scanning-cpp-query-pack.zip
@@ -152,7 +152,7 @@ jobs:
152152
codeql pack bundle --common-caches="$CODEQL_CACHE" --output=report-coding-standards.tgz cpp/report/src
153153
154154
- name: Upload qlpack bundles
155-
uses: actions/upload-artifact@v7
155+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
156156
with:
157157
name: coding-standards-codeql-packs
158158
path: "*-coding-standards.tgz"

.github/workflows/codeql_unit_tests.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
matrix: ${{ steps.export-unit-test-matrix.outputs.matrix }}
2525
steps:
2626
- name: Checkout repository
27-
uses: actions/checkout@v6
27+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2828

2929
- name: Export unit test matrix
3030
id: export-unit-test-matrix
@@ -46,10 +46,10 @@ jobs:
4646

4747
steps:
4848
- name: Checkout repository
49-
uses: actions/checkout@v6
49+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5050

5151
- name: Install Python
52-
uses: actions/setup-python@v6
52+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
5353
with:
5454
python-version: "3.9"
5555

@@ -58,7 +58,7 @@ jobs:
5858

5959
- name: Cache CodeQL
6060
id: cache-codeql
61-
uses: actions/cache@v6
61+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
6262
with:
6363
# A list of files, directories, and wildcard patterns to cache and restore
6464
path: ${{github.workspace}}/codeql_home
@@ -76,7 +76,7 @@ jobs:
7676

7777
- name: Cache queries compilation
7878
id: cache-queries-compilation
79-
uses: actions/cache/restore@v6
79+
uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
8080
with:
8181
path: ${{ github.workspace }}/codeql_cache
8282
key: ${{ runner.os }}-codeql-compilation-${{ matrix.language }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library_ident }}-${{ github.run_id }}
@@ -98,7 +98,7 @@ jobs:
9898
${{ matrix.language }}
9999
100100
- name: Save queries compilation cache
101-
uses: actions/cache/save@v6
101+
uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
102102
with:
103103
path: ${{ github.workspace }}/codeql_cache
104104
key: ${{ steps.cache-queries-compilation.outputs.cache-primary-key }}
@@ -170,7 +170,7 @@ jobs:
170170
file.close()
171171
172172
- name: Upload test results
173-
uses: actions/upload-artifact@v7
173+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
174174
with:
175175
name: ${{ matrix.language }}-test-results-${{ runner.os }}-${{ matrix.codeql_cli }}-${{ matrix.codeql_standard_library_ident }}
176176
path: |
@@ -185,12 +185,12 @@ jobs:
185185
steps:
186186
- name: Check if run-test-suites job failed to complete, if so fail
187187
if: ${{ needs.run-test-suites.result == 'failure' }}
188-
uses: actions/github-script@v9
188+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
189189
with:
190190
script: |
191191
core.setFailed('Test run job failed')
192192
- name: Collect test results
193-
uses: actions/download-artifact@v8
193+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
194194

195195
- name: Validate test results
196196
run: |

.github/workflows/dispatch-matrix-test-on-comment.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v6
16+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
1717

1818
- name: Check permission
1919
id: check-write-permission
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Generate token
2525
id: generate-token
26-
uses: actions/create-github-app-token@v3
26+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2727
with:
2828
app-id: ${{ vars.AUTOMATION_APP_ID }}
2929
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
@@ -44,7 +44,7 @@ jobs:
4444
--json \
4545
-R github/codeql-coding-standards-release-engineering
4646
47-
- uses: actions/github-script@v9
47+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4848
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-matrix') && steps.check-write-permission.outputs.has-permission }}
4949
with:
5050
script: |

.github/workflows/dispatch-release-performance-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
runs-on: ubuntu-22.04
1414
steps:
1515
- name: Checkout repository
16-
uses: actions/checkout@v6
16+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
1717

1818
- name: Check permission
1919
id: check-write-permission
@@ -23,7 +23,7 @@ jobs:
2323

2424
- name: Generate token
2525
id: generate-token
26-
uses: actions/create-github-app-token@v3
26+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
2727
with:
2828
app-id: ${{ vars.AUTOMATION_APP_ID }}
2929
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}
@@ -44,7 +44,7 @@ jobs:
4444
--json \
4545
-R github/codeql-coding-standards-release-engineering
4646
47-
- uses: actions/github-script@v9
47+
- uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
4848
if: ${{ github.event.issue.pull_request && contains(github.event.comment.body, '/test-performance') && steps.check-write-permission.outputs.has-permission }}
4949
with:
5050
script: |

.github/workflows/extra-rule-validation.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
runs-on: ubuntu-22.04
2424
steps:
2525
- name: Checkout
26-
uses: actions/checkout@v6
26+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2727

2828
- name: Check Rules
2929
shell: pwsh
@@ -35,7 +35,7 @@ jobs:
3535
runs-on: ubuntu-22.04
3636
steps:
3737
- name: Checkout
38-
uses: actions/checkout@v6
38+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
3939

4040
- name: Ensure CPP Shared Rules Have Valid Structure
4141
shell: pwsh
@@ -46,13 +46,13 @@ jobs:
4646
run: scripts/util/Test-SharedImplementationsHaveTestCases.ps1 -Language c -CIMode
4747

4848

49-
- uses: actions/upload-artifact@v7
49+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5050
if: failure()
5151
with:
5252
name: missing-test-report.csv
5353
path: MissingTestReport*.csv
5454

55-
- uses: actions/upload-artifact@v7
55+
- uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
5656
if: failure()
5757
with:
5858
name: test-report.csv

.github/workflows/finalize-release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -44,20 +44,20 @@ jobs:
4444
fi
4545
4646
- name: Checkout
47-
uses: actions/checkout@v6
47+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
4848
with:
4949
ref: ${{ env.REF }}
5050
fetch-depth: 0
5151
path: release
5252

5353
- name: Checkout
54-
uses: actions/checkout@v6
54+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
5555
with:
5656
ref: ${{ env.TOOL_REF }}
5757
path: tooling
5858

5959
- name: Install Python
60-
uses: actions/setup-python@v6
60+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
6161
with:
6262
python-version: "3.9"
6363

@@ -108,7 +108,7 @@ jobs:
108108
- name: Generate token
109109
if: env.HOTFIX_RELEASE == 'false'
110110
id: generate-token
111-
uses: actions/create-github-app-token@v3
111+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
112112
with:
113113
app-id: ${{ vars.AUTOMATION_APP_ID }}
114114
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}

.github/workflows/generate-html-docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,10 @@ jobs:
2222
runs-on: ubuntu-22.04
2323
steps:
2424
- name: Checkout
25-
uses: actions/checkout@v6
25+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2626

2727
- name: Install Python
28-
uses: actions/setup-python@v6
28+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
2929
with:
3030
python-version: "3.9"
3131

@@ -37,7 +37,7 @@ jobs:
3737
python scripts/documentation/generate_iso26262_docs.py coding-standards-html-docs
3838
3939
- name: Upload HTML documentation
40-
uses: actions/upload-artifact@v7
40+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
4141
with:
4242
name: coding-standards-docs-${{ github.sha }}
4343
path: coding-standards-html-docs/

.github/workflows/prepare-release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ jobs:
3434
runs-on: ubuntu-22.04
3535
steps:
3636
- name: Checkout
37-
uses: actions/checkout@v6
37+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
3838
with:
3939
ref: ${{ inputs.ref }}
4040

4141
- name: Install Python
42-
uses: actions/setup-python@v6
42+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
4343
with:
4444
python-version: "3.9"
4545

@@ -143,7 +143,7 @@ jobs:
143143
144144
- name: Generate token
145145
id: generate-token
146-
uses: actions/create-github-app-token@v3
146+
uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0
147147
with:
148148
app-id: ${{ vars.AUTOMATION_APP_ID }}
149149
private-key: ${{ secrets.AUTOMATION_PRIVATE_KEY }}

.github/workflows/standard_library_upgrade_tests.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
matrix: ${{ steps.export-unit-test-matrix.outputs.matrix }}
2222
steps:
2323
- name: Checkout repository
24-
uses: actions/checkout@v6
24+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
2525

2626
- name: Export unit test matrix
2727
id: export-unit-test-matrix
@@ -43,16 +43,16 @@ jobs:
4343

4444
steps:
4545
- name: Checkout repository
46-
uses: actions/checkout@v6
46+
uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6.1.0
4747

4848
- name: Setup Python 3
49-
uses: actions/setup-python@v6
49+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
5050
with:
5151
python-version: "3.x"
5252

5353
- name: Cache CodeQL
5454
id: cache-codeql
55-
uses: actions/cache@v5
55+
uses: actions/cache@caa296126883cff596d87d8935842f9db880ef25 # v5.1.0
5656
with:
5757
# A list of files, directories, and wildcard patterns to cache and restore
5858
path: ${{github.workspace}}/codeql_home
@@ -145,7 +145,7 @@ jobs:
145145
}, test_summary_file)
146146
147147
- name: Upload test results
148-
uses: actions/upload-artifact@v7
148+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
149149
with:
150150
name: test-results-${{runner.os}}-${{matrix.codeql_cli}}-${{matrix.codeql_standard_library_ident}}
151151
path: |
@@ -159,12 +159,12 @@ jobs:
159159
runs-on: ubuntu-22.04
160160
steps:
161161
- name: Install Python
162-
uses: actions/setup-python@v6
162+
uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6.3.0
163163
with:
164164
python-version: "3.9"
165165

166166
- name: Collect test results
167-
uses: actions/download-artifact@v8
167+
uses: actions/download-artifact@3e5f45b2cfb9172054b4087a40e8e0b5a5461e7c # v8.0.1
168168

169169
- name: Validate test results
170170
shell: python

0 commit comments

Comments
 (0)