Skip to content

Commit 3ed4f1d

Browse files
CI: security_scan workflow push trigger targets main instead of default master branch
1 parent a8b4133 commit 3ed4f1d

File tree

1 file changed

+21
-18
lines changed

1 file changed

+21
-18
lines changed
Lines changed: 21 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,30 @@
11
name: Security Scans
22

33
on:
4-
push:
5-
branches:
6-
- main
7-
pull_request:
8-
workflow_dispatch:
4+
push:
5+
branches:
6+
- master
7+
pull_request:
8+
workflow_dispatch:
99

10+
permissions:
11+
contents: read
1012
jobs:
11-
security-scans:
12-
runs-on: ubuntu-latest
13+
security-scans:
14+
runs-on: ubuntu-latest
15+
timeout-minutes: 10
1316

14-
steps:
15-
- name: Checkout Code
16-
uses: actions/checkout@v4
17+
steps:
18+
- name: Checkout Code
19+
uses: actions/checkout@v4
1720

18-
- name: Setup Node.js
19-
uses: actions/setup-node@v4
20-
with:
21-
node-version: '20'
21+
- name: Setup Node.js
22+
uses: actions/setup-node@v4
23+
with:
24+
node-version: "20"
2225

23-
- name: Install Dependencies
24-
run: npm install
26+
- name: Install Dependencies
27+
run: npm install
2528

26-
- name: Run npm Audit
27-
run: npm audit --audit-level=high || echo "npm audit failed"
29+
- name: Run npm Audit
30+
run: npm audit --audit-level=high || echo "npm audit failed"

0 commit comments

Comments
 (0)