File tree 5 files changed +33
-12
lines changed
5 files changed +33
-12
lines changed Original file line number Diff line number Diff line change 38
38
39
39
steps :
40
40
- name : Checkout repository
41
- uses : actions/checkout@v3
41
+ uses : actions/checkout@v4
42
+ with :
43
+ persist-credentials : false
42
44
43
45
# Initializes the CodeQL tools for scanning.
44
46
- name : Initialize CodeQL
Original file line number Diff line number Diff line change @@ -3,8 +3,10 @@ name: PR Validation
3
3
on :
4
4
pull_request :
5
5
6
+ permissions : {}
7
+
6
8
env :
7
- NODE_VERSION : 18.17.1
9
+ NODE_VERSION : 20.x
8
10
TEST_RESULTS_DIRECTORY : .
9
11
# Force a path with spaces and unicode chars to test extension works in these scenarios
10
12
special-working-directory : ' ./🐍 🐛'
@@ -16,19 +18,23 @@ jobs:
16
18
runs-on : ubuntu-latest
17
19
steps :
18
20
- name : Checkout
19
- uses : actions/checkout@v3
21
+ uses : actions/checkout@v4
22
+ with :
23
+ persist-credentials : false
20
24
21
25
- name : Build VSIX
22
26
uses : ./.github/actions/build-vsix
23
27
with :
24
- node_version : ${{ env.NODE_VERSION}}
28
+ node_version : ${{ env.NODE_VERSION }}
25
29
26
30
lint :
27
31
name : Lint
28
32
runs-on : ubuntu-latest
29
33
steps :
30
34
- name : Checkout
31
- uses : actions/checkout@v3
35
+ uses : actions/checkout@v4
36
+ with :
37
+ persist-credentials : false
32
38
33
39
- name : Lint
34
40
uses : ./.github/actions/lint
49
55
50
56
steps :
51
57
- name : Checkout
52
- uses : actions/checkout@v3
58
+ uses : actions/checkout@v4
53
59
with :
54
60
path : ${{ env.special-working-directory-relative }}
61
+ persist-credentials : false
55
62
56
63
# Install bundled libs using 3.8 even though you test it on other versions.
57
64
- name : Use Python 3.8
Original file line number Diff line number Diff line change 12
12
add-pr-label :
13
13
name : ' Ensure Required Labels'
14
14
runs-on : ubuntu-latest
15
+ permissions :
16
+ issues : write
17
+ pull-requests : write
15
18
steps :
16
19
- name : ' PR impact specified'
17
- uses : mheap/github-action-required-labels@v5
20
+ uses : mheap/github-action-required-labels@388fd6af37b34cdfe5a23b37060e763217e58b03 # v5.5.0
18
21
with :
19
22
mode : exactly
20
23
count : 1
Original file line number Diff line number Diff line change 8
8
- ' release/*'
9
9
- ' release-*'
10
10
11
+ permissions : {}
12
+
11
13
env :
12
- NODE_VERSION : 18.17.1
14
+ NODE_VERSION : 20.x
13
15
TEST_RESULTS_DIRECTORY : .
14
16
# Force a path with spaces and unicode chars to test extension works in these scenarios
15
17
special-working-directory : ' ./🐍 🐛'
@@ -21,19 +23,23 @@ jobs:
21
23
runs-on : ubuntu-latest
22
24
steps :
23
25
- name : Checkout
24
- uses : actions/checkout@v3
26
+ uses : actions/checkout@v4
27
+ with :
28
+ persist-credentials : false
25
29
26
30
- name : Build VSIX
27
31
uses : ./.github/actions/build-vsix
28
32
with :
29
- node_version : ${{ env.NODE_VERSION}}
33
+ node_version : ${{ env.NODE_VERSION }}
30
34
31
35
lint :
32
36
name : Lint
33
37
runs-on : ubuntu-latest
34
38
steps :
35
39
- name : Checkout
36
- uses : actions/checkout@v3
40
+ uses : actions/checkout@v4
41
+ with :
42
+ persist-credentials : false
37
43
38
44
- name : Lint
39
45
uses : ./.github/actions/lint
54
60
55
61
steps :
56
62
- name : Checkout
57
- uses : actions/checkout@v3
63
+ uses : actions/checkout@v4
58
64
with :
59
65
path : ${{ env.special-working-directory-relative }}
66
+ persist-credentials : false
60
67
61
68
# Install bundled libs using 3.8 even though you test it on other versions.
62
69
- name : Use Python 3.8
Original file line number Diff line number Diff line change 13
13
// Turn off tsc task auto detection since we have the necessary tasks as npm scripts
14
14
"typescript.tsc.autoDetect" : " off" ,
15
15
"python.linting.flake8Enabled" : true ,
16
+ "git.branchProtection" : [" main" ],
17
+ "git.branchRandomName.enable" : true ,
16
18
}
You can’t perform that action at this time.
0 commit comments