Skip to content

Commit 8c2634d

Browse files
committedMay 9, 2025
chore: lock down workflows
1 parent da7ee7b commit 8c2634d

File tree

5 files changed

+33
-12
lines changed

5 files changed

+33
-12
lines changed
 

‎.github/workflows/codeql-analysis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ jobs:
3838

3939
steps:
4040
- name: Checkout repository
41-
uses: actions/checkout@v3
41+
uses: actions/checkout@v4
42+
with:
43+
persist-credentials: false
4244

4345
# Initializes the CodeQL tools for scanning.
4446
- name: Initialize CodeQL

‎.github/workflows/pr-check.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,10 @@ name: PR Validation
33
on:
44
pull_request:
55

6+
permissions: {}
7+
68
env:
7-
NODE_VERSION: 18.17.1
9+
NODE_VERSION: 20.x
810
TEST_RESULTS_DIRECTORY: .
911
# Force a path with spaces and unicode chars to test extension works in these scenarios
1012
special-working-directory: './🐍 🐛'
@@ -16,19 +18,23 @@ jobs:
1618
runs-on: ubuntu-latest
1719
steps:
1820
- name: Checkout
19-
uses: actions/checkout@v3
21+
uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2024

2125
- name: Build VSIX
2226
uses: ./.github/actions/build-vsix
2327
with:
24-
node_version: ${{ env.NODE_VERSION}}
28+
node_version: ${{ env.NODE_VERSION }}
2529

2630
lint:
2731
name: Lint
2832
runs-on: ubuntu-latest
2933
steps:
3034
- name: Checkout
31-
uses: actions/checkout@v3
35+
uses: actions/checkout@v4
36+
with:
37+
persist-credentials: false
3238

3339
- name: Lint
3440
uses: ./.github/actions/lint
@@ -49,9 +55,10 @@ jobs:
4955

5056
steps:
5157
- name: Checkout
52-
uses: actions/checkout@v3
58+
uses: actions/checkout@v4
5359
with:
5460
path: ${{ env.special-working-directory-relative }}
61+
persist-credentials: false
5562

5663
# Install bundled libs using 3.8 even though you test it on other versions.
5764
- name: Use Python 3.8

‎.github/workflows/pr-labels.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,12 @@ jobs:
1212
add-pr-label:
1313
name: 'Ensure Required Labels'
1414
runs-on: ubuntu-latest
15+
permissions:
16+
issues: write
17+
pull-requests: write
1518
steps:
1619
- name: 'PR impact specified'
17-
uses: mheap/github-action-required-labels@v5
20+
uses: mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # v5.5.0
1821
with:
1922
mode: exactly
2023
count: 1

‎.github/workflows/push-check.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,10 @@ on:
88
- 'release/*'
99
- 'release-*'
1010

11+
permissions: {}
12+
1113
env:
12-
NODE_VERSION: 18.17.1
14+
NODE_VERSION: 20.x
1315
TEST_RESULTS_DIRECTORY: .
1416
# Force a path with spaces and unicode chars to test extension works in these scenarios
1517
special-working-directory: './🐍 🐛'
@@ -21,19 +23,23 @@ jobs:
2123
runs-on: ubuntu-latest
2224
steps:
2325
- name: Checkout
24-
uses: actions/checkout@v3
26+
uses: actions/checkout@v4
27+
with:
28+
persist-credentials: false
2529

2630
- name: Build VSIX
2731
uses: ./.github/actions/build-vsix
2832
with:
29-
node_version: ${{ env.NODE_VERSION}}
33+
node_version: ${{ env.NODE_VERSION }}
3034

3135
lint:
3236
name: Lint
3337
runs-on: ubuntu-latest
3438
steps:
3539
- name: Checkout
36-
uses: actions/checkout@v3
40+
uses: actions/checkout@v4
41+
with:
42+
persist-credentials: false
3743

3844
- name: Lint
3945
uses: ./.github/actions/lint
@@ -54,9 +60,10 @@ jobs:
5460

5561
steps:
5662
- name: Checkout
57-
uses: actions/checkout@v3
63+
uses: actions/checkout@v4
5864
with:
5965
path: ${{ env.special-working-directory-relative }}
66+
persist-credentials: false
6067

6168
# Install bundled libs using 3.8 even though you test it on other versions.
6269
- name: Use Python 3.8

‎.vscode/settings.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,4 +13,6 @@
1313
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
1414
"typescript.tsc.autoDetect": "off",
1515
"python.linting.flake8Enabled": true,
16+
"git.branchProtection": ["main"],
17+
"git.branchRandomName.enable": true,
1618
}

0 commit comments

Comments
 (0)