Skip to content

Navigation Menu

Sign up

added github workflow #35

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
shobhit-veracode wants to merge 1 commit into master from sde-1111
Closed
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
38 changes: 38 additions & 0 deletions .github/workflows/veracode.yml
View file Open in desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
name: Veracode SAST Scan

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
veracode-scan:
runs-on: ubuntu-latest
steps:
# Step 1: Check out the code
- name: Checkout Code
uses: actions/checkout@v4

# Step 2: Set up Java (Required by the Veracode wrapper under the hood)
- name: Set up Java
uses: actions/setup-java@v4
with:
java-version: '17'
distribution: 'zulu'

# Step 3: Zip the source files (Excluding node_modules as required by Veracode)
- name: Package Application for Veracode
run: |
zip -r veracode-package.zip . -x "node_modules/*" ".git/*" ".github/*"

# Step 4: Upload and Scan to Veracode
- name: Veracode Upload and Scan
uses: veracode/uploadandscan-action@v1.0.3
with:
vid: ${{ secrets.VERACODE_API_ID }}
vkey: ${{ secrets.VERACODE_API_KEY }}
appname: ${{ github.event.repository.name }}
createprofile: true
filepath: 'veracode-package.zip'
version: 'Scan-${{ github.run_id }}-${{ github.run_number }}'

AltStyle によって変換されたページ (->オリジナル) /