Veracode IaC/Secrets Scanning - digi-voltron-design-system #8539
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
name: Veracode IaC/Secrets Scanning | |
run-name: Veracode IaC/Secrets Scanning - ${{ github.event.client_payload.repository.name }} | |
concurrency: | |
group: ${{ github.event.client_payload.event_type }}-${{ github.event.client_payload.repository.name }}-${{ github.event.client_payload.repository.branch }} | |
cancel-in-progress: true | |
on: | |
repository_dispatch: | |
types: [veracode-iac-secrets-scan] | |
jobs: | |
register: | |
uses: ./.github/workflows/veracode-check-run.yml | |
with: | |
check_run_name: ${{ github.workflow }} | |
head_sha: ${{ github.event.client_payload.sha }} | |
repositroy_owner: ${{ github.event.client_payload.repository.owner }} | |
repositroy_name: ${{ github.event.client_payload.repository.name }} | |
event_type: ${{ github.event.client_payload.event_type }} | |
github_token: ${{ github.event.client_payload.token }} | |
run_id: ${{ github.run_id }} | |
branch: ${{ github.event.client_payload.repository.branch }} | |
validations: | |
needs: register | |
runs-on: ubuntu-latest | |
name: Validations | |
steps: | |
- name: Verify Veracode API credentials | |
id: verify_api_creds | |
uses: veracode/github-actions-integration-helper@v0.1.2 | |
with: | |
action: validateVeracodeApiCreds | |
token: ${{ github.event.client_payload.token }} | |
vid: ${{ secrets.VERACODE_API_ID }} | |
vkey: ${{ secrets.VERACODE_API_KEY }} | |
appname: ${{ github.event.client_payload.user_config.profile_name }} | |
source_repository: ${{ github.event.client_payload.repository.full_name }} | |
check_run_id: ${{ needs.register.outputs.run_id }} | |
veracode-iac-secrets-scan: | |
needs: [register, validations] | |
runs-on: ubuntu-latest | |
name: Veracode IaC/Secrets Scanning | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: ${{ github.event.client_payload.repository.full_name }} | |
ref: ${{ github.event.client_payload.sha }} | |
token: ${{ github.event.client_payload.token }} | |
- name: Run Veracode IaC/Secrets Scanning | |
uses: veracode/container_iac_secrets_scanning@v1.0.2 | |
with: | |
vid: ${{ secrets.VERACODE_API_ID }} | |
vkey: ${{ secrets.VERACODE_API_KEY }} | |
command: "scan" | |
type: "directory" | |
source: "./" | |
format: "json" | |
debug: false | |
fail_build: ${{ github.event.client_payload.user_config.break_build_policy_findings }} |