Skip to content

Commit 9d3ef56

Browse files
oraNodgotmax23
andcommitted
ci: fix issues identified by zizmor GHA linter (ansible#3331)
Co-authored-by: Maxwell G <9920591+gotmax23@users.noreply.github.com> (cherry picked from commit 8131b7a)
1 parent a5b8e11 commit 9d3ef56

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
@@ -11,6 +11,9 @@ name: Ansible Docsite CI
1111
pull_request:
1212
workflow_dispatch:
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
nox:
1619
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
@@ -38,6 +38,8 @@ jobs:
3838
steps:
3939
- name: Check out repo
4040
uses: actions/checkout@v4
41+
with:
42+
persist-credentials: false
4143
- name: Setup nox
4244
uses: wntrblm/nox@2025.10.16
4345
with:

0 commit comments

Comments
 (0)