Skip to content

Commit 07caaa1

Browse files
committed
Tweak CI
* add concurrency group * add timeouts * add CodeQL permissions * drop CodeQL autobuild
1 parent 10bbb04 commit 07caaa1

3 files changed

Lines changed: 18 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,15 @@ env:
1313
permissions:
1414
contents: read
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
19+
1620
jobs:
1721
test:
1822
name: Node ${{ matrix.node }} on ${{ matrix.os }}
1923
runs-on: ${{ matrix.os }}
24+
timeout-minutes: 10
2025

2126
strategy:
2227
fail-fast: false

.github/workflows/codeql.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,18 @@ on:
1111
- cron: "0 0 * * 0"
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
20+
1421
jobs:
1522
analyze:
1623
name: Analyze
1724
runs-on: ubuntu-latest
25+
timeout-minutes: 30
1826
permissions:
1927
actions: read
2028
contents: read
@@ -33,9 +41,6 @@ jobs:
3341
languages: "javascript"
3442
queries: +security-and-quality
3543

36-
- name: Autobuild
37-
uses: github/codeql-action/autobuild@v4
38-
3944
- name: Perform CodeQL Analysis
4045
uses: github/codeql-action/analyze@v4
4146
with:

.github/workflows/lint.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,14 @@ env:
1414
permissions:
1515
contents: read
1616

17+
concurrency:
18+
group: ${{ github.workflow }}-${{ github.ref }}
19+
cancel-in-progress: ${{ github.event_name == 'pull_request' }}
20+
1721
jobs:
1822
lint:
1923
runs-on: ubuntu-latest
24+
timeout-minutes: 10
2025

2126
steps:
2227
- name: Clone repository

0 commit comments

Comments
 (0)