Uh oh!
There was an error while loading. Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork 96
fix: improve supply chain protections#802
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base:main
Are you sure you want to change the base?
Uh oh!
There was an error while loading. Please reload this page.
Changes from all commits
File filter
Filter by extension
Conversations
Uh oh!
There was an error while loading. Please reload this page.
Jump to
Uh oh!
There was an error while loading. Please reload this page.
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -16,19 +16,29 @@ jobs: | ||||||||||||||
| commitlint: | ||||||||||||||
| name: Lint Commit Messages | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
| pull-requests: read | ||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||
| with: | ||||||||||||||
| fetch-depth: 0 | ||||||||||||||
| - uses: wagoid/commitlint-github-action@v6.2.1 | ||||||||||||||
| lint: | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||
| - uses: actions/setup-python@v6 | ||||||||||||||
| with: | ||||||||||||||
| persist-credentials: false | ||||||||||||||
| - name: Set up uv | ||||||||||||||
| uses: astral-sh/setup-uv@v8.0.0 | ||||||||||||||
| with: | ||||||||||||||
| python-version: "3.11" | ||||||||||||||
| - uses: pre-commit/action@v3.0.1 | ||||||||||||||
| activate-environment: true | ||||||||||||||
| - name: Run pre-commit | ||||||||||||||
| run: uv run --frozen pre-commit run --all-files | ||||||||||||||
| test: | ||||||||||||||
| strategy: | ||||||||||||||
| @@ -38,33 +48,33 @@ jobs: | ||||||||||||||
| - "3.11" | ||||||||||||||
| - "3.14" | ||||||||||||||
| runs-on: ubuntu-latest | ||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
| steps: | ||||||||||||||
| - uses: actions/checkout@v6 | ||||||||||||||
| - name: Set up uv | ||||||||||||||
| uses: astral-sh/setup-uv@v7 | ||||||||||||||
| uses: astral-sh/setup-uv@v8.0.0 | ||||||||||||||
| with: | ||||||||||||||
| python-version: ${{ matrix.python-version }} | ||||||||||||||
| activate-environment: true | ||||||||||||||
| - run: uv pip install pip | ||||||||||||||
CopilotAI | ||||||||||||||
| - run: uv pip install pip |
CopilotAIMar 31, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The PR-only test-release job grants broad write permissions (contents, issues, pull-requests). Given the steps are configured for no-op/dry-run (no push/tag/release), these should likely be reduced to the minimum required (typically read-only) to limit blast radius if a workflow run is compromised.
| contents: write | |
| issues: write | |
| pull-requests: write | |
| contents: read | |
| issues: read | |
| pull-requests: read |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
WDYT about this comment?
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
CopilotAIMar 31, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For supply-chain hardening,
astral-sh/setup-uv@v8.0.0is still a mutable ref unless you pin the action to an exact commit SHA (tags can be moved/replaced). Consider switching touses: astral-sh/setup-uv@<full-sha>(and optionally leaving the tag in a comment) to make the workflow reference itself immutable.