Readme updates #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: Build and Test | |
on: | |
pull_request: | |
workflow_dispatch: | |
jobs: | |
snyk-code: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@master | |
- name: Snyk Code | |
uses: snyk/actions/gradle@master | |
env: | |
SNYK_TOKEN: ${{ secrets.SNYK_TOKEN }} | |
stackhawk-hawkscan: | |
name: Runs the application and the HawkScan test of the app | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v2 | |
- name: Build and Run Vulny! | |
run: docker-compose build && docker-compose up -d | |
- name: HawkScan | |
uses: stackhawk/[email protected] | |
with: | |
apiKey: ${{ secrets.HAWK_API_KEY }} | |
configurationFiles: stackhawk.d/stackhawk-custom-params.yml stackhawk.d/stackhawk-github-pr.yml | |
env: | |
COMMIT_SHA: ${{ github.event.pull_request.head.sha }} | |
BRANCH_NAME: ${{ github.head_ref }} |