-
Notifications
You must be signed in to change notification settings - Fork 1
32 lines (32 loc) · 1.55 KB
/
hawkscan.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
name: HawkScan
on:
repository_dispatch:
types: [integration-initial-test]
jobs:
hawkscan:
name: HawkScan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Create ${{ github.event.client_payload.repoName }} app directory
run: mkdir -p common/build/integrationTests/hawkscan-action/apps/${{ github.event.client_payload.repoName }}
- name: Navigate to ${{ github.event.client_payload.repoName }} app directory
run: cd common/build/integrationTests/hawkscan-action/apps/${{ github.event.client_payload.repoName }}
- name: Checkout vulny repo
run: git clone https://github.com/${{ github.event.client_payload.repoOrg }}/${{ github.event.client_payload.repoName }}.git
- name: Run ${{ github.event.client_payload.repoName }}
run: docker-compose up -d
- name: Navigate to repo root directory
run: cd /home/runner/work/${{ github.event.client_payload.repoName }}/${{ github.event.client_payload.repoName }}
- name: Run HawkScan
id: run-hawkscan
uses: stackhawk/hawkscan-action@main
with:
apiKey: ${{ secrets.HAWK_API_KEY }}
configurationFiles: ${{ github.event.client_payload.configFile }}
sourceURL: ${{ github.event.client_payload.hawkscanSourceUrl }}
version: ${{ github.event.client_payload.hawkscanVersion }}
verbose: ${{ github.event.client_payload.verbose }}
env:
# APPLICATION_ID: ${{ github.event.client_payload.appId }}
APP_ID: ${{ github.event.client_payload.appId }}