Skip to content

Commit

Permalink
Updated example and description
Browse files Browse the repository at this point in the history
Updated example description to match the new example and also added a build step to the example.
  • Loading branch information
sinat101 authored Feb 1, 2022
1 parent f6926fd commit d533f56
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ With the scan deleted automatically, you can create subsequent scans without hav

## Example usage

The following example will upload all files contained within the folder_to_upload to Veracode and start a static scan.
The following example will compile and build a Java web applicatin (.war file) from the main branch of the source code repository using Maven. The compiled .war file is then uploaded to Veracode and a static analysis scan is run.

The veracode credentials are read from github secrets. NEVER STORE YOUR SECRETS IN THE REPOSITORY.

Expand All @@ -117,6 +117,9 @@ jobs:
steps:
- name: Check out main branch
uses: actions/checkout@v2

- name: Build with Maven # Compiling the .war binary from the checked out repo source code to upload to the scanner in the next step
run: mvn -B package --file app/pom.xml

- name: Veracode Upload And Scan
uses: veracode/[email protected]
Expand Down

0 comments on commit d533f56

Please sign in to comment.