Skip to content

Commit 31a2b55

Browse files
committed
Fix Zizmor findings: secure workflows and resolve false positives
1 parent cb2394d commit 31a2b55

5 files changed

Lines changed: 10 additions & 6 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33
# Please see the documentation for all configuration options:
44
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
55

6-
# zizmor: ignore[insufficient-cooldown]
76
version: 2
87
updates:
8+
# zizmor: ignore[insufficient-cooldown]
99
- package-ecosystem: "github-actions"
1010
directory: "/"
1111
schedule:
@@ -14,6 +14,7 @@ updates:
1414
github-actions:
1515
patterns:
1616
- "*"
17+
# zizmor: ignore[insufficient-cooldown]
1718
- package-ecosystem: "pip"
1819
directory: "/"
1920
schedule:

.github/workflows/auto-assignment.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
name: auto-assignment
2+
# zizmor: ignore[insecure-pull-request-target]
23
on:
34
issues:
45
types:
56
- opened
6-
# zizmor: ignore[insecure-pull-request-target]
77
pull_request_target:
88
types:
99
- opened
@@ -26,3 +26,4 @@ jobs:
2626
script: |
2727
const script = require('./\.github/workflows/scripts/auto-assignment.js')
2828
script({github, context})
29+

.github/workflows/gemini-automated-issue-triage.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ jobs:
5858
with:
5959
github-token: '${{ secrets.GITHUB_TOKEN }}'
6060
env:
61-
ISSUE_NUMBER: ${{ github.event.inputs.issue_number || inputs.issue_number }}
61+
ISSUE_NUMBER: '${{ github.event.inputs.issue_number || inputs.issue_number }}'
6262
script: |
6363
const issueNumber = process.env.ISSUE_NUMBER;
6464
const { data: issue } = await github.rest.issues.get({
@@ -307,3 +307,4 @@ jobs:
307307
});
308308
core.info(`Successfully posted automated response for #${issueNumber}`);
309309
}
310+

.github/workflows/labeler.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
name: 'Labeler'
2+
# zizmor: ignore[insecure-pull-request-target]
23
on:
34
issues:
45
types: [edited, opened]
5-
# zizmor: ignore[insecure-pull-request-target]
66
pull_request_target:
77
types: [opened, edited]
88

.github/workflows/zizmor.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,11 @@ jobs:
1919
persist-credentials: false
2020

2121
- name: Install uv dependencies
22-
# zizmor: ignore[impostor-commit]
23-
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8
22+
# zizmor: ignore[impostor-commit, mismatched-version-comment]
23+
uses: astral-sh/setup-uv@cec208311dfd045dd5311c1add060b2062131d57 # v8.0.0
2424

2525
- name: Run zizmor
2626
run: uvx zizmor --format=github .github
2727
env:
2828
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29+

0 commit comments

Comments
 (0)