Skip to content

Commit 3b8c2dd

Browse files
authored
Create shiftleft-analysis.yml
1 parent a8e9ac2 commit 3b8c2dd

File tree

1 file changed

+41
-0
lines changed

1 file changed

+41
-0
lines changed
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# This workflow integrates Scan with GitHub's code scanning feature
2+
# Scan is a free open-source security tool for modern DevOps teams from ShiftLeft
3+
# Visit https://slscan.io/en/latest/integrations/code-scan for help
4+
name: SL Scan
5+
6+
# This section configures the trigger for the workflow. Feel free to customize depending on your convention
7+
on: push
8+
9+
jobs:
10+
Scan-Build:
11+
# Scan runs on ubuntu, mac and windows
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v1
15+
# Instructions
16+
# 1. Setup JDK, Node.js, Python etc depending on your project type
17+
# 2. Compile or build the project before invoking scan
18+
# Example: mvn compile, or npm install or pip install goes here
19+
# 3. Invoke Scan with the github token. Leave the workspace empty to use relative url
20+
- uses: actions/setup-node@v2-beta
21+
with:
22+
node-version: '12'
23+
24+
- run: npm install
25+
26+
- name: Perform Scan
27+
uses: ShiftLeftSecurity/scan-action@master
28+
env:
29+
WORKSPACE: ""
30+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
SCAN_AUTO_BUILD: true
32+
with:
33+
output: reports
34+
# Scan auto-detects the languages in your project. To override uncomment the below variable and set the type
35+
# type: credscan,java
36+
# type: python
37+
38+
- name: Upload report
39+
uses: github/codeql-action/upload-sarif@v1
40+
with:
41+
sarif_file: reports

0 commit comments

Comments
 (0)