Skip to content

Merge pull request #40 from chainguard-dev/chore/GHA-310715-stepsecur… #44

Merge pull request #40 from chainguard-dev/chore/GHA-310715-stepsecur…

Merge pull request #40 from chainguard-dev/chore/GHA-310715-stepsecur… #44

Workflow file for this run

name: Malcontent Analysis on Push
on:
push:
branches:
- main
permissions: {}
jobs:
malcontent:
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Harden the runner (Audit all outbound calls)
uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0
with:
egress-policy: audit
- name: Checkout code
uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0
with:
fetch-depth: 2 # Need at least 2 commits for HEAD~1
- name: Run Malcontent Diff
id: malcontent
uses: ./ # In actual usage, this would be: chainguard-dev/malcontent-action@...
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF
uses: github/codeql-action/upload-sarif@df559355d593797519d70b90fc8edd5db049e7a2 #v3.29.0 - 11 Jun 2025
if: always() # Upload even if the malcontent check fails
with:
sarif_file: ${{ steps.malcontent.outputs.sarif-file }}
category: malcontent