Skip to content

Commit 1d3af0d

Browse files
Fix zizmor reports (#177)
1 parent 92917cd commit 1d3af0d

File tree

6 files changed

+42
-6
lines changed

6 files changed

+42
-6
lines changed

.github/dependabot.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,3 +5,9 @@ updates:
55
directory: /
66
schedule:
77
interval: daily
8+
groups:
9+
github-actions:
10+
patterns:
11+
- "*"
12+
cooldown:
13+
default-days: 7

.github/workflows/claude.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,19 +13,24 @@ on:
1313
permissions:
1414
contents: read
1515

16+
concurrency:
17+
group: ${{ github.workflow }}-${{ github.ref }}
18+
cancel-in-progress: true
19+
1620
jobs:
1721
claude:
22+
name: Run Claude Code
1823
if: |
1924
(github.event_name == 'issue_comment' && contains(github.event.comment.body, '@claude')) ||
2025
(github.event_name == 'pull_request_review_comment' && contains(github.event.comment.body, '@claude')) ||
2126
(github.event_name == 'pull_request_review' && contains(github.event.review.body, '@claude')) ||
2227
(github.event_name == 'issues' && (contains(github.event.issue.body, '@claude') || contains(github.event.issue.title, '@claude')))
2328
runs-on: ubuntu-latest
2429
permissions:
25-
contents: read
26-
pull-requests: read
27-
issues: read
28-
id-token: write
30+
contents: read # Required to checkout the repository
31+
pull-requests: read # Required to read PR comments and details
32+
issues: read # Required to read issue comments and details
33+
id-token: write # Required for OIDC token exchange with Anthropic
2934
steps:
3035
- name: Checkout repository
3136
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
@@ -35,7 +40,7 @@ jobs:
3540

3641
- name: Run Claude Code
3742
id: claude
38-
uses: anthropics/claude-code-action@beta
43+
uses: anthropics/claude-code-action@a7e4c51380c42dd89b127f5e5f9be7b54020bc6b # v1.0.21
3944
with:
4045
anthropic_api_key: ${{ secrets.ANTHROPIC_API_KEY }}
4146

.github/workflows/lint.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,13 @@ on:
99
permissions:
1010
contents: read
1111

12+
concurrency:
13+
group: ${{ github.workflow }}-${{ github.ref }}
14+
cancel-in-progress: true
15+
1216
jobs:
1317
lint-python:
18+
name: Lint Python with Ruff and mypy
1419
runs-on: ubuntu-latest
1520
permissions:
1621
contents: read
@@ -42,6 +47,7 @@ jobs:
4247
continue-on-error: true # TODO: Remove once type annotations are fixed
4348

4449
all-lints-pass:
50+
name: All lints pass
4551
if: always()
4652
permissions:
4753
contents: read

.github/workflows/pip-audit.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,13 @@ on:
1111
permissions:
1212
contents: read
1313

14+
concurrency:
15+
group: ${{ github.workflow }}-${{ github.ref }}
16+
cancel-in-progress: true
17+
1418
jobs:
1519
pip-audit:
20+
name: Scan dependencies with pip-audit
1621
runs-on: ubuntu-latest
1722
permissions:
1823
contents: read

.github/workflows/release.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,13 @@ on:
77
permissions:
88
contents: read
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.ref }}
12+
cancel-in-progress: false
13+
1014
jobs:
1115
build-release:
16+
name: Build release artifacts
1217
runs-on: ubuntu-latest
1318
permissions:
1419
contents: read
@@ -36,6 +41,7 @@ jobs:
3641
path: dist/
3742

3843
publish:
44+
name: Publish to PyPI
3945
runs-on: ubuntu-latest
4046
environment: release
4147
permissions:

.github/workflows/tests.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,13 @@ on:
1212
permissions:
1313
contents: read
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.ref }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
test:
21+
name: Test Python ${{ matrix.python-version }}
1722
runs-on: ubuntu-latest
1823
permissions:
1924
contents: read
@@ -33,7 +38,9 @@ jobs:
3338
cache-dependency-glob: "uv.lock"
3439

3540
- name: Set up Python ${{ matrix.python-version }}
36-
run: uv python install ${{ matrix.python-version }}
41+
env:
42+
PYTHON_VERSION: ${{ matrix.python-version }}
43+
run: uv python install -- "$PYTHON_VERSION"
3744

3845
- name: Install dependencies
3946
run: uv sync --extra test
@@ -45,6 +52,7 @@ jobs:
4552
run: uv run coverage report
4653

4754
all-tests-pass:
55+
name: All tests pass
4856
if: always()
4957
permissions:
5058
contents: read

0 commit comments

Comments
 (0)