Skip to content

Commit e027d6d

Browse files
committed
[SEC-7924] chore: pin third-party GitHub Actions to commit SHAs
Pin all third-party GitHub Actions to full-length commit SHAs to prevent supply chain attacks. Addresses findings from the third-party-action-not-pinned-to-commit-sha Semgrep rule.
1 parent 456e7ea commit e027d6d

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main, beta, prerelease ]
5+
branches: [main, beta, prerelease]
66
paths:
77
- 'src/**'
88
- 'package.json'
@@ -18,7 +18,7 @@ jobs:
1818
steps:
1919
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # 4.2.2
2020
with:
21-
fetch-depth: 2 # Need previous commit to compare versions
21+
fetch-depth: 2 # Need previous commit to compare versions
2222

2323
- name: Extract branch name
2424
shell: bash
@@ -52,15 +52,15 @@ jobs:
5252
- run: yarn run lint
5353
- name: Publish to Visual Studio Marketplace
5454
if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch != 'prerelease' }}
55-
uses: HaaLeo/publish-vscode-extension@v1.5.0
55+
uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 # v1.5.0
5656
with:
5757
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
5858
registryUrl: https://marketplace.visualstudio.com
5959
yarn: true
6060

6161
- name: Publish to Visual Studio Marketplace for pre-release
6262
if: ${{ (steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch') && steps.extract_branch.outputs.branch == 'prerelease' }}
63-
uses: HaaLeo/publish-vscode-extension@v1.5.0
63+
uses: HaaLeo/publish-vscode-extension@65512ae7dcf96159b51fdd7ed73eb17d5cacad33 # v1.5.0
6464
with:
6565
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
6666
registryUrl: https://marketplace.visualstudio.com
@@ -69,7 +69,7 @@ jobs:
6969

7070
- name: Publish to Open VSX Registry
7171
if: ${{ steps.version_check.outputs.changed == 'true' || github.event_name == 'workflow_dispatch' }}
72-
uses: HaaLeo/publish-vscode-extension@v0
72+
uses: HaaLeo/publish-vscode-extension@aae4c55fd9e724685834ff0a9488ad57c8f3ecf1 # v0
7373
with:
7474
pat: ${{ secrets.OPEN_VSX_TOKEN }}
7575
yarn: true

0 commit comments

Comments
 (0)