Skip to content

Commit 4020dd5

Browse files
committed
More workflow tweaks.
1 parent dbf326b commit 4020dd5

File tree

3 files changed

+13
-3
lines changed

3 files changed

+13
-3
lines changed

.github/workflows/deploy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
permissions: {}
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
vsce:
1216
name: VS Code Marketplace

.github/workflows/lint-workflows.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
lint:
2121
name: Lint
2222
permissions:
23-
security-events: write
24-
actions: read
25-
contents: read
23+
security-events: write # Required for codeql-action/upload-sarif to upload SARIF files.
24+
contents: read # Needed to clone the repo.
25+
actions: read # Needed for codeql-action/upload-sarif to read workflow run info.
2626
uses: johnbillion/plugin-infrastructure/.github/workflows/reusable-workflow-lint.yml@trunk

.github/workflows/test.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88

99
permissions: {}
1010

11+
concurrency:
12+
group: ${{ github.workflow }}-${{ github.ref }}
13+
cancel-in-progress: true
14+
1115
jobs:
1216
test:
1317
if: github.event_name == 'push' || github.event.pull_request.head.repo.full_name != github.repository
@@ -19,6 +23,8 @@ jobs:
1923
steps:
2024
- name: Checkout repository
2125
uses: actions/checkout@v4
26+
with:
27+
persist-credentials: false
2228

2329
- name: setup node
2430
uses: actions/setup-node@v4

0 commit comments

Comments
 (0)