Skip to content

Commit 3a7f15e

Browse files
Pin actions/checkout to commit hash with version comment (#376)
* Initial plan * Add version comments to actions/checkout references Co-authored-by: shenxianpeng <[email protected]> * Move version comments to inline format Co-authored-by: shenxianpeng <[email protected]> * Revert examples folder changes and use commit hash in comments Co-authored-by: shenxianpeng <[email protected]> * Use commit hash as reference and version tag as comment Co-authored-by: shenxianpeng <[email protected]> --------- Co-authored-by: copilot-swe-agent[bot] <[email protected]> Co-authored-by: shenxianpeng <[email protected]>
1 parent 3b4dc71 commit 3a7f15e

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

.github/workflows/cpp-linter.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
cpp-linter:
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v6
16+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
1717
- uses: cpp-linter/cpp-linter-action@main
1818
id: linter
1919
continue-on-error: true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
re-tag:
2323
runs-on: ubuntu-latest
2424
steps:
25-
- uses: actions/checkout@v6
25+
- uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
2626
with:
2727
fetch-depth: 0
2828
ref: ${{ inputs.ref }}

.github/workflows/self-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ jobs:
3939
runs-on: ${{ matrix.os }}
4040
steps:
4141
- name: Checkout
42-
uses: actions/checkout@v6
42+
uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0
4343

4444
- name: Cache the build artifacts
4545
id: cache-build

0 commit comments

Comments
 (0)