ci: pre-commit updates; ci tweaks - #399
Conversation
alexpriv8
commented
Jul 28, 2026
- ci: pre-commit pinning & updates;
- ci tweaks
|
|
Overall Grade |
Security Reliability Complexity Hygiene |
Code Review Summary
| Analyzer | Status | Updated (UTC) | Details |
|---|---|---|---|
| Secrets | Jul 28, 2026 4:52p.m. | Review ↗ | |
| Shell | Jul 28, 2026 4:52p.m. | Review ↗ |
Important
AI Review is run only on demand for your team. We're only showing results of static analysis review right now. To trigger AI Review, comment @deepsourcebot review on this thread.
There was a problem hiding this comment.
Pull request overview
Updates CI/security tooling configuration to improve pre-commit reproducibility and adjust Trivy/GitHub Actions behavior across test, release, and cache workflows.
Changes:
- Pins/upgrades multiple pre-commit hooks using
--freeze(commit-SHA revs) and updates hook revisions. - Tweaks Trivy configuration/output and adjusts Trivy workflow permissions/inputs.
- Switches checkout steps in CI workflows to a shared
git-checkoutaction and updates release GCP service account input.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 3 comments.
Show a summary per file
| File | Description |
|---|---|
.trivy.yaml |
Enables suppressed finding display and tidies config formatting. |
.pre-commit-config.yaml |
Freezes and updates hook revisions to commit SHAs for reproducible installs. |
.github/workflows/tests.yaml |
Uses shared org checkout action for test workflow. |
.github/workflows/release.yaml |
Uses shared org checkout action and updates GCP auth service account secret reference. |
.github/workflows/pre-commit-cache.yaml |
Expands workflow permissions and removes explicit Trivy github_token input. |
Comments suppressed due to low confidence (1)
.github/workflows/pre-commit-cache.yaml:15
- The permission comments say "master only", but this workflow runs on both main and master (and others). Update the comments to reflect that these permissions are only needed/used on the repository default branch, not specifically "master".
security-events: write # required for trivy to upload SARIF to GitHub Security tab (master only)
actions: write # required for trivy to upload SBOM artifact (master only)
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| - name: actions/checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - https://github.com/actions/checkout/releases | ||
| uses: indykite/.github/.github/actions/git-checkout@master # actions/checkout with dynamic fetch-depth resolution | ||
|
|
| steps: | ||
| - name: actions/checkout | ||
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - https://github.com/actions/checkout/releases | ||
| uses: indykite/.github/.github/actions/git-checkout@master # actions/checkout with dynamic fetch-depth resolution | ||
|
|
| permissions: | ||
| contents: write # required for trivy to upload artifacts | ||
| security-events: write # required for trivy to upload SARIF to GitHub Security tab (master only) | ||
| actions: write # required for trivy to upload SBOM artifact (master only) | ||
|
|