Skip to content

ci: pin pip-audit action SHAs and update to v1.1.0#2884

Open
kami922 wants to merge 2 commits intomandiant:masterfrom
kami922:fix-1131-pin-pip-audit-action-sha
Open

ci: pin pip-audit action SHAs and update to v1.1.0#2884
kami922 wants to merge 2 commits intomandiant:masterfrom
kami922:fix-1131-pin-pip-audit-action-sha

Conversation

@kami922
Copy link
Contributor

@kami922 kami922 commented Feb 26, 2026

Fixes #1131

The pip-audit.yml workflow was added previously but both actions were unpinned (using mutable tags), inconsistent with every other workflow in the repo which pins to commit SHAs.

Changes

  • actions/checkout@v4@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1 (same SHA already used in tests.yml)
  • pypa/gh-action-pip-audit@v1.0.8@1220774d901786e6f652ae159f7b6bc8fea6d266 # v1.1.0 (latest stable, adds Windows runner support)

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed
  • This submission includes AI-generated code and I have provided details in the description.

@gemini-code-assist
Copy link
Contributor

Summary of Changes

Hello @kami922, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request enhances the continuous integration pipeline by standardizing the use of pinned commit SHAs for GitHub Actions, thereby increasing the reliability and security of the workflows. It also updates the pip-audit action to its latest stable version, bringing new features like Windows runner support.

Highlights

  • CI/CD Action Pinning: GitHub Actions (actions/checkout and pypa/gh-action-pip-audit) are now pinned to specific commit SHAs for improved security and reproducibility, aligning with repository standards.
  • pip-audit Action Update: The pypa/gh-action-pip-audit action has been updated from v1.0.8 to v1.1.0, which includes support for Windows runners.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Changelog
  • CHANGELOG.md
    • Added an entry documenting the CI update for pip-audit action pinning and version bump.
  • tests/conftest.py
    • Changed absolute import paths for test fixtures to relative import paths.
Ignored Files
  • Ignored by pattern: .github/workflows/** (1)
    • .github/workflows/pip-audit.yml
Activity
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request pins GitHub Action versions in the CI configuration to specific commit SHAs for improved security and build stability, and updates pypa/gh-action-pip-audit to v1.1.0. A changelog entry has been added to reflect this. Additionally, a small change in tests/conftest.py converts imports to be explicit relative imports. The provided code changes are correct and I have no further feedback.

Comment on lines +23 to +27
from .fixtures import * # noqa: F403 [unable to detect undefined names]
from .fixtures import _692f_dotnetfile_extractor # noqa: F401 [imported but unused]
from .fixtures import _1c444_dotnetfile_extractor # noqa: F401 [imported but unused]
from .fixtures import _039a6_dotnetfile_extractor # noqa: F401 [imported but unused]
from .fixtures import _0953c_dotnetfile_extractor # noqa: F401 [imported but unused]
Copy link
Collaborator

Choose a reason for hiding this comment

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

are these changes related/required?

Copy link
Collaborator

Choose a reason for hiding this comment

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

Please remove these changes if not required.

@mike-hunhoff
Copy link
Collaborator

@kami922 tests are failing. Please ensure all tests pass locally before requesting another review.

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.

Use pip-audit to scan Python dependencies for known vulnerabilities

3 participants