Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f98105e

Browse files
committedFeb 15, 2024
chore: update workflows
1 parent dcf95f5 commit f98105e

File tree

4 files changed

+42
-30
lines changed

4 files changed

+42
-30
lines changed
 

‎.github/dependabot.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
version: 2
22
updates:
3-
- package-ecosystem: github-actions
4-
directory: "/"
5-
schedule:
6-
interval: daily
7-
open-pull-requests-limit: 10
8-
- package-ecosystem: npm
9-
directory: "/"
10-
schedule:
11-
interval: daily
12-
open-pull-requests-limit: 10
3+
- package-ecosystem: github-actions
4+
directory: /
5+
schedule:
6+
interval: daily
7+
open-pull-requests-limit: 10
8+
9+
- package-ecosystem: npm
10+
directory: /
11+
schedule:
12+
interval: daily
13+
open-pull-requests-limit: 10

‎.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: ci
1+
name: CI
22

33
on:
44
push:
@@ -10,33 +10,33 @@ on:
1010
- 'docs/**'
1111
- '*.md'
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
dependency-review:
1518
name: Dependency Review
1619
if: github.event_name == 'pull_request'
1720
runs-on: ubuntu-latest
18-
permissions:
19-
contents: read
2021
steps:
21-
- name: Check out repo
22-
uses: actions/checkout@v3
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
2324
with:
2425
persist-credentials: false
2526

2627
- name: Dependency review
27-
uses: actions/dependency-review-action@v2
28+
uses: actions/dependency-review-action@v4
2829

2930
test:
3031
runs-on: ${{ matrix.os }}
31-
permissions:
32-
contents: read
3332
strategy:
3433
matrix:
3534
node-version: [16, 18, 20]
3635
os: [ubuntu-latest, windows-latest, macOS-latest]
3736
fail-fast: false
3837
steps:
39-
- uses: actions/checkout@v3
38+
- name: Checkout repository
39+
uses: actions/checkout@v4
4040
with:
4141
persist-credentials: false
4242

@@ -45,6 +45,8 @@ jobs:
4545
with:
4646
node-version: ${{ matrix.node-version }}
4747
check-latest: true
48+
cache: npm
49+
cache-dependency-path: package.json
4850

4951
- name: Install
5052
run: |
@@ -68,8 +70,6 @@ jobs:
6870
coverage:
6971
needs: test
7072
runs-on: ubuntu-latest
71-
permissions:
72-
contents: read
7373
steps:
7474
- name: Coveralls Finished
7575
uses: coverallsapp/github-action@master
Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: sast
1+
name: CodeQL
22

33
on:
44
push:
@@ -11,19 +11,25 @@ jobs:
1111
name: Analyze
1212
runs-on: ubuntu-latest
1313
permissions:
14+
actions: read
1415
contents: read
1516
security-events: write
1617
strategy:
1718
fail-fast: true
1819
matrix:
19-
language: [ 'javascript' ]
20+
language: [ 'javascript-typescript' ]
2021
steps:
21-
- uses: actions/checkout@v3
22+
- name: Checkout repository
23+
uses: actions/checkout@v4
2224
with:
2325
persist-credentials: false
2426

25-
- uses: github/codeql-action/init@v3
27+
- name: Initialize CodeQL
28+
uses: github/codeql-action/init@v3
2629
with:
2730
languages: ${{ matrix.language }}
2831

29-
- uses: github/codeql-action/analyze@v3
32+
- name: Perform CodeQL Analysis
33+
uses: github/codeql-action/analyze@v3
34+
with:
35+
category: "/language:${{ matrix.language }}"

‎.github/workflows/labeler.yml

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,15 @@
1-
name: "Pull Request Labeler"
1+
name: Pull Request Labeler
2+
23
on: pull_request_target
34

5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
49
jobs:
510
label:
611
runs-on: ubuntu-latest
712
steps:
8-
- uses: actions/labeler@main
9-
with:
10-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
13+
- uses: actions/labeler@v5
14+
with:
15+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

0 commit comments

Comments
 (0)