Open
Description
Describe the bug
The following step in a GitHub workflow is detected as a Warn: npmCommand not pinned by hash
when it really is pinned.
- name: Install Dependencies
run: |
npm install github:nodeca/js-yaml#2cef47bebf60da141b78b085f3dea3b5733dcc12
Reproduction steps
Steps to reproduce the behavior:
- Create a workflow like the following
name: test
on:
workflow_dispatch:
permissions:
contents: read
jobs:
process:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683
- name: Install Dependencies
run: |
npm install github:nodeca/js-yaml#2cef47bebf60da141b78b085f3dea3b5733dcc12
- Run the command
scorecard --local=. --show-details --checks=Pinned-Dependencies
- Check that the new workflow reports the Warning
npmCommand not pinned by hash
Expected behavior
The command is detected as a pinned dependency
https://docs.npmjs.com/about-packages-and-modules#npm-package-git-url-formats
Additional context
Add any other context about the problem here.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status