Skip to content

Update IgnoreCommand.java #42

Update IgnoreCommand.java

Update IgnoreCommand.java #42

Workflow file for this run

name: verademo
on:
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 8
- name: Cache Maven packages
uses: actions/cache@v3
with:
path: ~/.m2
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml') }}
- name: Build with Maven
run: |
cd test
mvn clean package
- uses: actions/upload-artifact@v4
with:
name: verademo.war
path: test/target/verademo.war
pipeline_scan:
needs: build
runs-on: ubuntu-latest
name: veracode pipeline scan
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: get archive
uses: actions/download-artifact@v4
with:
name: verademo.war
- name: pipeline-scan action step
id: pipelien-scan
uses: veracode/Veracode-pipeline-scan-action@esd-true
with:
vid: ${{ secrets.VID }}
vkey: ${{ secrets.VKEY }}
file: "verademo.war"
request_policy: "Veracode Recommended SCA Very Low"
debug: 1
fail_build: false
- uses: actions/upload-artifact@v4
with:
name: Veracode Pipeline-Scan Results
path: results.json
veracode-fix:
runs-on: ubuntu-latest
needs: pipeline_scan
name: veracode fix
steps:
- name: checkout repo
uses: actions/checkout@v3
- name: get flaw file
uses: actions/download-artifact@v4
with:
name: Veracode Pipeline-Scan Results
- name: Create fixes from static findings
id: convert
uses: Veracode/veracode-fix@main
with:
inputFile: results.json
vid: ${{ secrets.VID }}
vkey: ${{ secrets.VKEY }}
source_base_path_1: "com/:test/src/main/java/com/"
source_base_path_2: "WEB-INF:test/src/main/webapp/WEB-INF"
language: java
createPR: true
fixType: batch
files: changed
debug: true
prComment: true