Skip to content

Commit

Permalink
updated workflow file to trigger action for check create
Browse files Browse the repository at this point in the history
  • Loading branch information
shailesh-veracode committed Sep 26, 2023
1 parent 80c7018 commit c955da4
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 58 deletions.
21 changes: 11 additions & 10 deletions .github/workflows/binary-ready-veracode-sast-pipeline-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: veracode/Veracode-github-app@aws-ecs-dynamodb
with:
callback_url: ${{ github.event.client_payload.callback_url }}
sha: ${{ github.event.client_payload.sha }}
branch: ${{ github.event.client_payload.branch }}
run_id: ${{ github.run_id }}
repository_owner: ${{ github.event.client_payload.repository.owner }}
repository_name: ${{ github.event.client_payload.repository.name }}
event_type: ${{ github.event.client_payload.event_type }}
enforce: true
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

pipeline_scan:
needs: register
Expand Down
17 changes: 9 additions & 8 deletions .github/workflows/binary-ready-veracode-sast-policy-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: veracode/veracode-github-app@main
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
with:
callback_url: ${{ github.event.client_payload.callback_url }}
sha: ${{ github.event.client_payload.sha }}
branch: ${{ github.event.client_payload.branch }}
run_id: ${{ github.run_id }}
repository_owner: ${{ github.event.client_payload.repository.owner }}
repository_name: ${{ github.event.client_payload.repository.name }}
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
enforce: true
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

policy_scan:
needs: register
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/veracode-code-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
with:
check_run_name: 'Register workflow'
head_sha: ${{ github.event.client_payload.sha }}
repositroy_owner: ${{ github.event.client_payload.repository.owner }}
repositroy_name: ${{ github.event.client_payload.repository.name }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

build:
needs: register
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/veracode-iac-secrets-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: veracode/Veracode-github-app@aws-ecs-dynamodb
with:
callback_url: ${{ github.event.client_payload.callback_url }}
sha: ${{ github.event.client_payload.sha }}
branch: ${{ github.event.client_payload.branch }}
run_id: ${{ github.run_id }}
repository_owner: ${{ github.event.client_payload.repository.owner }}
repository_name: ${{ github.event.client_payload.repository.name }}
event_type: ${{ github.event.client_payload.event_type }}
enforce: true
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

veracode-iac-secrets-scan:
needs: [register]
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/veracode-not-supported.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: veracode/Veracode-github-app@aws-ecs-dynamodb
with:
callback_url: ${{ github.event.client_payload.callback_url }}
sha: ${{ github.event.client_payload.sha }}
branch: ${{ github.event.client_payload.branch }}
run_id: ${{ github.run_id }}
repository_owner: ${{ github.event.client_payload.repository.owner }}
repository_name: ${{ github.event.client_payload.repository.name }}
event_type: ${{ github.event.client_payload.event_type }}
enforce: true
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

veracode-not-supported:
needs: [register]
Expand Down
21 changes: 11 additions & 10 deletions .github/workflows/veracode-sca-scan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,16 +10,17 @@ jobs:
register:
runs-on: ubuntu-latest
steps:
- uses: veracode/Veracode-github-app@aws-ecs-dynamodb
with:
callback_url: ${{ github.event.client_payload.callback_url }}
sha: ${{ github.event.client_payload.sha }}
branch: ${{ github.event.client_payload.branch }}
run_id: ${{ github.run_id }}
repository_owner: ${{ github.event.client_payload.repository.owner }}
repository_name: ${{ github.event.client_payload.repository.name }}
event_type: ${{ github.event.client_payload.event_type }}
enforce: true
- uses: GitHubVeracode/veracode-github-app@main
id: 'create_check_run'
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 }}
status: 'in_progress'
event_type: ${{ github.event.client_payload.event_type }}
github_token: ${{ github.event.client_payload.token }}
default_organization_repository: 'veracode'

veracode-sca-scan:
needs: [register]
Expand Down

0 comments on commit c955da4

Please sign in to comment.