Skip to content

Commit 3b3d528

Browse files
oraNodgotmax23
andcommitted
ci: fix issues identified by zizmor GHA linter (ansible#3331)
Co-authored-by: Maxwell G <[email protected]> (cherry picked from commit 8131b7a)
1 parent 1df0df5 commit 3b3d528

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.github/workflows/ci.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
nox:
1316
uses: ./.github/workflows/reusable-nox.yml

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@
2424

2525
name: "Triage Issues and PRs"
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
label_prs:
2932
runs-on: ubuntu-latest
@@ -43,6 +46,8 @@ jobs:
4346
private-key: ${{ secrets.BOT_APP_KEY }}
4447
- name: Checkout parent repository
4548
uses: actions/checkout@v4
49+
with:
50+
persist-credentials: false
4651
- name: Install Python 3.11
4752
uses: actions/setup-python@v5
4853
with:

.github/workflows/reusable-nox.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,8 @@ jobs:
3636
steps:
3737
- name: Check out repo
3838
uses: actions/checkout@v4
39+
with:
40+
persist-credentials: false
3941
- name: Setup nox
4042
uses: wntrblm/[email protected]
4143
with:

0 commit comments

Comments
 (0)