Skip to content

Security: Use pip install with hash verification for yamllint#6327

Open
jencarlucci wants to merge 1 commit intomainfrom
security/code-scanning-fixes-vuln-195710
Open

Security: Use pip install with hash verification for yamllint#6327
jencarlucci wants to merge 1 commit intomainfrom
security/code-scanning-fixes-vuln-195710

Conversation

@jencarlucci
Copy link
Copy Markdown
Contributor

Security Finding Remediation

Finding File Fix
pip install without hash verification .github/workflows/linter.yml Added requirements.txt with hashes, use --require-hashes

Closes https://github.com/github/vuln-mgmt/issues/195710

Add requirements.txt with pinned hashes for yamllint and its
dependencies. Update the linter workflow to use --require-hashes
to ensure integrity of installed packages.

Closes github/vuln-mgmt#195710
Copilot AI review requested due to automatic review settings April 22, 2026 17:17
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR remediates a security finding in the GitHub Actions linter workflow by switching pip install to hash-verified installs for yamllint, ensuring dependencies are pinned and integrity-checked.

Changes:

  • Add a requirements.txt generated with pip-compile --generate-hashes containing pinned yamllint and dependencies with hashes.
  • Update .github/workflows/linter.yml to install from requirements.txt using pip install --require-hashes.
Show a summary per file
File Description
requirements.txt Introduces pinned, hash-verified Python dependencies for the linter workflow.
.github/workflows/linter.yml Switches yamllint installation to --require-hashes + -r requirements.txt.

Copilot's findings

Tip

Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

  • Files reviewed: 1/2 changed files
  • Comments generated: 0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants