Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions .github/workflows/npmscan.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: NPMscan

on:
pull_request:
types: [opened, synchronize, reopened]

permissions:
contents: read
pull-requests: write

jobs:
npmscan:
name: Dependency Security Scan
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Pin the checkout action to a full commit SHA

actions/checkout@v4 is a mutable reference, unlike the full commit SHAs used in the existing pull-request workflow. A routine retag or compromise would therefore run unreviewed checkout code on every PR with this workflow's pull-requests: write token, allowing that code to alter PRs; pin checkout to a reviewed commit SHA so this supply-chain check does not itself add a mutable CI dependency.

Useful? React with 👍 / 👎.

- name: Run NPMscan
uses: NPMscan/npmscan-action@de14168f65640a4ed1f0e82ad3ad8c80483d360d
with:
file: package-lock.json
mode: warn
fail-on-error: false