Veracode_IaC #4
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 | |
on: | |
workflow_dispatch: | |
jobs: | |
Veracode_IaC: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Download IaC Tool | |
run: | | |
curl -fsS https://tools.veracode.com/veracode-cli/install | sh | |
- name: Veracode IaC | |
shell: pwsh | |
env: | |
VERACODE_API_KEY_ID: ${{ secrets.VeracodeID }} # Lembrar de criar as credenciais no Secrets | |
VERACODE_API_KEY_SECRET: ${{ secrets.VeracodeKey }} | |
run: | | |
$subfolder = Get-ChildItem -Path ./scenarios -Directory | |
foreach ($subpasta in $subfolder) { | |
$folderName = $subpasta.FullName | |
Write-Host "Work in scenario: $subpasta.Name ---------------------------------------------------------------------" | |
./veracode scan --type directory --source $folderName --format table | |
Write-Host "...." | |
} |