Skip to content

Commit 0706f96

Browse files
authored
Create shiftleft-analysis.yml
1 parent 8541d5e commit 0706f96

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# This workflow integrates ShiftLeft Scan with GitHub's code scanning feature
2+
# ShiftLeft Scan is a free open-source security tool for modern DevOps teams
3+
# Visit https://slscan.io/en/latest/integrations/code-scan for help
4+
name: ShiftLeft 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 ShiftLeft Scan with the github token. Leave the workspace empty to use relative url
20+
21+
- name: Perform ShiftLeft Scan
22+
uses: ShiftLeftSecurity/scan-action@master
23+
env:
24+
WORKSPACE: ""
25+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26+
SCAN_AUTO_BUILD: true
27+
with:
28+
output: reports
29+
# Scan auto-detects the languages in your project. To override uncomment the below variable and set the type
30+
# type: credscan,java
31+
# type: python
32+
33+
- name: Upload report
34+
uses: github/codeql-action/upload-sarif@v1
35+
with:
36+
sarif_file: reports

0 commit comments

Comments
 (0)