Skip to content

Commit 03cf548

Browse files
Pin GitHub Actions to full-length commit SHAs (#5580)
1 parent 9c59338 commit 03cf548

2 files changed

Lines changed: 17 additions & 6 deletions

File tree

‎.github/dependabot.yml‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: "github-actions"
4+
directory: "/"
5+
groups:
6+
github-actions:
7+
patterns: ["*"]
8+
schedule:
9+
interval: "weekly"
10+
cooldown:
11+
default-days: 7

‎.github/workflows/ci-test.yml‎

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,13 +25,13 @@ jobs:
2525
timeout-minutes: 10
2626
steps:
2727
- name: Checkout PowerShellEditorServices
28-
uses: actions/checkout@v7
28+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2929
with:
3030
repository: PowerShell/PowerShellEditorServices
3131
path: PowerShellEditorServices
3232

3333
- name: Checkout vscode-powershell
34-
uses: actions/checkout@v7
34+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3535
with:
3636
path: vscode-powershell
3737

@@ -41,7 +41,7 @@ jobs:
4141
working-directory: vscode-powershell
4242

4343
- name: Install dotnet
44-
uses: actions/setup-dotnet@v5
44+
uses: actions/setup-dotnet@26b0ec14cb23fa6904739307f278c14f94c95bf1 # v5.4.0
4545
with:
4646
cache: true
4747
cache-dependency-path: PowerShellEditorServices/**/*.csproj
@@ -52,7 +52,7 @@ jobs:
5252
shell: pwsh
5353
run: ./vscode-powershell/tools/installPSResources.ps1
5454

55-
- uses: actions/setup-node@v6
55+
- uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
5656
with:
5757
node-version: 22
5858
cache: npm
@@ -75,7 +75,7 @@ jobs:
7575
working-directory: vscode-powershell
7676

7777
- name: Upload build artifacts
78-
uses: actions/upload-artifact@v7
78+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
7979
if: always()
8080
with:
8181
# archive: false uploads the .vsix directly (no zip wrapper) using the filename as the artifact name
@@ -84,7 +84,7 @@ jobs:
8484
if-no-files-found: ignore
8585

8686
- name: Upload test results
87-
uses: actions/upload-artifact@v7
87+
uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1
8888
if: always()
8989
with:
9090
name: vscode-powershell-test-results-${{ matrix.os }}

0 commit comments

Comments
 (0)