Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 7 additions & 4 deletions .github/workflows/shiftleft-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,19 +7,22 @@ on: push
jobs:
Scan-Build:
# Scan runs on ubuntu, mac and windows
runs-on: ubuntu-latest
runs-on: ubuntu-20.04
steps:
- uses: actions/checkout@v1
- name: Maven compile and package
run: mvn compile package
- name: Perform NG SAST Analysis
run: |
docker run -e WORKSPACE -e GITHUB_TOKEN -e SCAN_AUTO_BUILD -v /github/workspace:/app shiftleft/scan-java scan --src /app --type java
docker run -e WORKSPACE -e GITHUB_TOKEN \
-e SHIFTLEFT_ORG_ID -e SHIFTLEFT_ACCESS_TOKEN -e SHIFTLEFT_API_TOKEN \
-v ${GITHUB_WORKSPACE}:/app shiftleft/scan-java scan --no-error --src /app --type java
env:
WORKSPACE: ""
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SCAN_AUTO_BUILD: true
SHIFTLEFT_ORG_ID: ${{ secrets.SHIFTLEFT_ORG_ID }}
SHIFTLEFT_ACCESS_TOKEN: ${{ secrets.SHIFTLEFT_ACCESS_TOKEN }}

SHIFTLEFT_API_TOKEN: ${{ secrets.SHIFTLEFT_API_TOKEN }}
- name: Upload report
uses: github/codeql-action/upload-sarif@v1
with:
Expand Down