Skip to content

Commit 2cb3d86

Browse files
committed
more updates
1 parent ff901d6 commit 2cb3d86

File tree

2 files changed

+87
-2
lines changed

2 files changed

+87
-2
lines changed

.github/workflows/build.yaml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Build Test
2+
3+
on:
4+
pull_request:
5+
branches:
6+
- main
7+
push:
8+
branches:
9+
- main
10+
11+
jobs:
12+
build:
13+
runs-on: ubuntu-latest
14+
strategy:
15+
matrix:
16+
node-version:
17+
- 22
18+
steps:
19+
- uses: actions/checkout@v4
20+
- name: Use Node.js v${{ matrix.node-version }}
21+
uses: actions/setup-node@v4
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
cache: npm
25+
- run: npm ci
26+
- run: npm run build
27+
# - run: npm test

.github/workflows/security.yml

Lines changed: 60 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
name: Security
1+
name: Security Test
22
run-name: ${{ github.actor }} is running Security Actions
33
on: [pull_request]
44
jobs:
5-
security:
5+
secrets:
66
runs-on: ubuntu-latest
77
steps:
88
- run: echo "Triggered by a ${{ github.event_name }} event."
@@ -27,3 +27,61 @@ jobs:
2727
name: scan_results
2828
path: /tmp/scan_output.json
2929
retention-days: 7
30+
sast-dependencies:
31+
runs-on: ubuntu-latest
32+
steps:
33+
- uses: actions/checkout@v3
34+
# Node.js dependencies scan
35+
- name: Setup Node.js
36+
uses: actions/setup-node@v4
37+
with:
38+
node-version: "22"
39+
cache: "npm"
40+
- name: Install Node dependencies
41+
run: npm ci
42+
- name: Run Snyk for Node.js
43+
uses: snyk/actions/node@master
44+
env:
45+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
46+
with:
47+
command: test
48+
args: >
49+
--severity-threshold=high
50+
--show-vulnerable-paths=all
51+
# Python dependencies scan
52+
- name: Setup Python
53+
uses: actions/setup-python@v4
54+
with:
55+
python-version: "3.9"
56+
- name: Install Python dependencies
57+
run: pip install -r requirements.txt
58+
- name: Run Snyk for Python
59+
uses: snyk/actions/python@master
60+
env:
61+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
62+
with:
63+
command: test
64+
args: >
65+
--file=requirements.txt
66+
--severity-threshold=high
67+
--show-vulnerable-paths=all
68+
sast-code:
69+
runs-on: ubuntu-latest
70+
steps:
71+
- uses: actions/checkout@v3
72+
- name: Setup Node.js
73+
uses: actions/setup-node@v4
74+
with:
75+
node-version: "22"
76+
cache: "npm"
77+
- name: Install dependencies
78+
run: npm ci
79+
- name: Run Snyk to check for vulnerabilities
80+
uses: snyk/actions/node@master
81+
env:
82+
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }}
83+
with:
84+
command: code test
85+
args: >
86+
--severity-threshold=high
87+
--json-file-output=snyk-code-test.json

0 commit comments

Comments
 (0)