Skip to content

Commit 2a2e2b2

Browse files
Pin GitHub Actions to full-length commit SHAs
1 parent b1500f0 commit 2a2e2b2

5 files changed

Lines changed: 14 additions & 12 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -43,3 +43,5 @@ updates:
4343
interval: "weekly"
4444
labels:
4545
- "dependencies"
46+
cooldown:
47+
default-days: 7

.github/workflows/PullRequest.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,17 +26,17 @@ jobs:
2626
- windows-latest
2727

2828
steps:
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0
3030
with:
3131
lfs: true
3232

3333
- name: Setup .NET
34-
uses: actions/setup-dotnet@v2
34+
uses: actions/setup-dotnet@8e6bd2905eef86446227f003dda1deb3916c4aaf # v2.2.1
3535
with:
3636
dotnet-version: 6.0.x
3737

3838
- name: Setup Node.js environment
39-
uses: actions/setup-node@v3
39+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
4040
with:
4141
node-version: 20
4242
registry-url: https://npm.pkg.github.com
@@ -73,7 +73,7 @@ jobs:
7373

7474
- name: Upload PAC CLI logs
7575
if: always()
76-
uses: actions/upload-artifact@v4
76+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
7777
with:
7878
name: pac-cli-log ${{ matrix.os }}
7979
path: out/pp-bt-test/tasks/tool-installer/**/pac*/tools/logs/pac-log.txt

.github/workflows/codeql.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -40,17 +40,17 @@ jobs:
4040

4141
steps:
4242
- name: Checkout repository
43-
uses: actions/checkout@v3
43+
uses: actions/checkout@a37ce9120846195fa4ece8f58b268e6043cb2f26 # v3.7.0
4444

4545
# Initializes the CodeQL tools for scanning.
4646
- name: Initialize CodeQL
47-
uses: github/codeql-action/init@v2
47+
uses: github/codeql-action/init@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
4848
with:
4949
languages: ${{ matrix.language }}
5050
config-file: ./.github/codeql/codeql-config.yml
5151

5252
- name: Setup Node.js environment
53-
uses: actions/setup-node@v3
53+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
5454
with:
5555
node-version: 20
5656
registry-url: https://npm.pkg.github.com
@@ -73,6 +73,6 @@ jobs:
7373
run: npm run build
7474

7575
- name: Perform CodeQL Analysis
76-
uses: github/codeql-action/analyze@v2
76+
uses: github/codeql-action/analyze@b8d3b6e8af63cde30bdc382c0bc28114f4346c88 # v2.28.1
7777
with:
7878
category: "/language:${{matrix.language}}"

.github/workflows/dependency-security.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
refresh:
3232
runs-on: ubuntu-latest
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
3535

3636
- name: Setup Node.js environment
37-
uses: actions/setup-node@v4
37+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
3838
with:
3939
node-version: 20
4040
registry-url: https://npm.pkg.github.com

.github/workflows/post-release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ jobs:
4848
echo "Detected version: $VERSION (run: $RUN_ID)"
4949
5050
- name: Checkout main
51-
uses: actions/checkout@v4
51+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
5252
with:
5353
ref: main
5454
token: ${{ secrets.GITHUB_TOKEN }}
@@ -116,7 +116,7 @@ jobs:
116116
git push
117117
118118
- name: Checkout release/stable
119-
uses: actions/checkout@v4
119+
uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
120120
with:
121121
ref: release/stable
122122
token: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)