Skip to content

Artifact upload

Artifact upload #9

Workflow file for this run

name: "action-tests"
on:
pull_request:
branches:
- main
push:
branches:
- main
workflow_dispatch:
branches:
- main
- feature/ms-build
jobs:
hawkscan:
name: Java Spring Vulny Test
runs-on: ubuntu-latest
permissions:
# required for all workflows
security-events: write
# required to fetch internal or private CodeQL packs
packages: read
# only required for workflows in private repositories
actions: read
contents: read
steps:
- uses: actions/setup-java@v4
with:
distribution: 'temurin'
java-version: '17'
- name: Checkout javaspringvulny repository
uses: actions/checkout@v4
- name: Run javaspringvulny
run: docker-compose up -d
- name: Run Hawkscan
uses: stackhawk/[email protected]
with:
sourceUrl: https://download.stackhawk.com/dev/hawk/cli
version: 3.9.4
apiKey: ${{ secrets.HAWK_API_KEY }}
configurationFiles: stackhawk.d/stackhawk.yml stackhawk.d/stackhawk-jsv-json-token.yml stackhawk.d/github-tags.yml
env:
APP_ID: fe3b8948-0edb-4fa4-a3b7-6fa200461f78
ENV: action-scan
SARIF_ARTIFACT: true
COMMIT_SHA: ${{ github.event.pull_request.head.sha }}
BRANCH_NAME: ${{ github.head_ref }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
# Path to SARIF file relative to the root of the repository
sarif_file: stackhawk.sarif
# Optional category for the results
# Used to differentiate multiple results for one commit
category: StackHawk
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: my-artifact
path: stackhawk.sarif