Skip to content

Commit cbce031

Browse files
nateprewittsigmavirus24
authored andcommitted
Add Zizmor workflow and make initial updates
1 parent 6360477 commit cbce031

6 files changed

Lines changed: 40 additions & 2 deletions

File tree

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ updates:
99
# upgrade if we run into a bug and need a fix.
1010
- dependency-name: "*"
1111
update-types: ["version-update:semver-patch"]
12+
cooldown:
13+
default-days: 7

.github/workflows/close-issues.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,12 @@ on:
55
types:
66
- labeled
77

8-
permissions:
9-
issues: write
8+
permissions: {}
109

1110
jobs:
1211
close_qa:
12+
permissions:
13+
issues: write
1314
if: github.event.label.name == 'actions/autoclose-qa'
1415
runs-on: ubuntu-latest
1516
steps:
@@ -22,6 +23,8 @@ jobs:
2223
--reason completed
2324
gh issue lock $ISSUE_URL --reason off_topic
2425
close_feature_request:
26+
permissions:
27+
issues: write
2528
if: github.event.label.name == 'actions/autoclose-feat'
2629
runs-on: ubuntu-latest
2730
steps:

.github/workflows/codeql-analysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ jobs:
3737
# We must fetch at least the immediate parents so that if this is
3838
# a pull request then we can checkout the head.
3939
fetch-depth: 2
40+
persist-credentials: false
4041

4142
# If this run was triggered by a pull request event, then checkout
4243
# the head of the pull request instead of the merge commit.

.github/workflows/lint.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212

1313
steps:
1414
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
15+
with:
16+
persist-credentials: false
1517
- name: Set up Python
1618
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1719
with:

.github/workflows/run-tests.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,8 @@ jobs:
2222

2323
steps:
2424
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
25+
with:
26+
persist-credentials: false
2527
- name: Set up Python ${{ matrix.python-version }}
2628
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2729
with:
@@ -45,6 +47,8 @@ jobs:
4547

4648
steps:
4749
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
50+
with:
51+
persist-credentials: false
4852
- name: 'Set up Python 3.10'
4953
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
5054
with:
@@ -65,6 +69,8 @@ jobs:
6569

6670
steps:
6771
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd
72+
with:
73+
persist-credentials: false
6874
- name: 'Set up Python 3.10'
6975
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405
7076
with:

.github/workflows/zizmor.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
# Sourced from https://github.com/zizmorcore/zizmor-action
2+
name: GitHub Actions Security Analysis with zizmor 🌈
3+
4+
on:
5+
push:
6+
branches: ["main"]
7+
pull_request:
8+
branches: ["**"]
9+
10+
permissions: {}
11+
12+
jobs:
13+
zizmor:
14+
runs-on: ubuntu-latest
15+
permissions:
16+
security-events: write
17+
steps:
18+
- name: Checkout repository
19+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
22+
23+
- name: Run zizmor 🌈
24+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2

0 commit comments

Comments
 (0)