Sample workflows

Action with a published vulnerability

tj-actions/changed-files@v35, a version an advisory lists as vulnerable.

poutine carries a copy of the GitHub advisory database from its release and flags this version: GHSA-mcph-m25j-8j63 (CVE-2023-51664), command injection through crafted file names in the action's outputs, fixed in v41.

Pinning doesn't fix this, and it hides the version from some checks: once v35 is pinned to its commit, poutine and Dependabot alerts, which match advisories by tag, no longer recognize it. zizmor's online known-vulnerable-actions audit looks up the tag of a pinned commit and still does. Upgrade to v41 or later.

# Lists the files a pull request changed with a version of# tj-actions/changed-files that has a published vulnerability.name: Changed files on:  pull_request: permissions:  contents: read jobs:  changes:    runs-on: ubuntu-latest    steps:      - uses: actions/checkout@v4        with:          persist-credentials: false      - id: changed        uses: tj-actions/changed-files@v35      - run: echo "$CHANGED"        env:          CHANGED: ${{ steps.changed.outputs.all_changed_files }}