Upload SARIF #32
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: "Upload SARIF" | |
# Run workflow each time code is pushed to your repository and on a schedule. | |
# The scheduled workflow runs every Thursday at 15:45 UTC. | |
on: | |
push: | |
schedule: | |
- cron: '45 15 * * 4' | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
permissions: | |
# required for all workflows | |
security-events: write | |
# only required for workflows in private repositories | |
actions: read | |
contents: read | |
steps: | |
# This step checks out a copy of your repository. | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- 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: results.sarif | |
# Optional category for the results | |
# Used to differentiate multiple results for one commit | |
category: my-analysis-tool |