forked from wasptree/Veracode-pipeline-scan-action
-
Notifications
You must be signed in to change notification settings - Fork 22
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #10 from veracode/addnightlyscanning
add new yml for nightly scanning
- Loading branch information
Showing
6 changed files
with
785 additions
and
117 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
name: Veracode Security Scan | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- master | ||
schedule: | ||
- cron: 0 4 * * * | ||
workflow_dispatch: | ||
|
||
jobs: | ||
veracode-sca-task: | ||
runs-on: ubuntu-latest | ||
name: Veracode SCA scan | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v2 | ||
- name: Run Veracode SCA | ||
env: | ||
SRCCLR_API_TOKEN: ${{ secrets.SRCCLR_API_TOKEN }} | ||
uses: veracode/[email protected] | ||
|
||
veracode-sast-task: | ||
runs-on: ubuntu-latest | ||
name: Veracode SAST policy scan | ||
|
||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: create new package-lock.json | ||
run: npm install | ||
- name: ZIP source folder | ||
run: zip -r app.zip src package-lock.json | ||
- name: Run Veracode Policy scan | ||
uses: veracode/[email protected] | ||
with: | ||
appname: 'GitHub Pipeline Scan Action' | ||
createprofile: false | ||
filepath: 'app.zip' | ||
scantimeout: 30 | ||
vid: '${{ secrets.API_ID }}' | ||
vkey: '${{ secrets.API_KEY }}' | ||
|
||
|
||
|
||
|
Oops, something went wrong.