Skip to content
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

feat: add contrast sast scan #44

Merged
merged 4 commits into from
Apr 11, 2024
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
34 changes: 34 additions & 0 deletions .github/workflows/contrast-sast-scan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Contrast SAST Scan

on:
workflow_call:

jobs:
sast-scan:
runs-on: ubuntu-latest
name: Run Contrast SAST Scan

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up JDK 11
uses: actions/setup-java@v4
with:
java-version: '11'
distribution: 'adopt'

- name: Run Contrast SAST Scan
uses: ibm-skills-network/action-sast-scan@main
with:
contrast-api-url: ${{ vars.CONTRAST__API__URL }}
jfrog-token: ${{ secrets.JFROG_TOKEN }}
contrast-api-agent-version: ${{ vars.CONTRAST_AGENT_VERSION }}
contrast-api-user-name: ${{ secrets.CONTRAST__API__USER_NAME }}
contrast-api-api-key: ${{ secrets.CONTRAST__API__API_KEY }}
contrast-api-service-key: ${{ secrets.CONTRAST__API__SERVICE_KEY }}
contrast-api-organization: ${{ secrets.CONTRAST__API__ORGANIZATION }}
contrast-api-auth-token: ${{ secrets.CONTRAST__AUTH__TOKEN }}
contrast-api-resource-group: ${{ vars.CONTRAST_RESOURCE_GROUP }}
file-to-be-scanned: ${{ github.workspace }}
project-name: ${{ github.repository }}