chore(ci): do not persist credentials in git checkout (#2530)

We don't need any credentials after the initial clone.

xref: https://github.com/ublue-os/aurora/issues/2528
This commit is contained in:
renner 2026-07-08 22:26:59 +02:00 committed by GitHub
parent 2e7a4111f0
commit 97ad97024f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 13 additions and 0 deletions

View file

@ -26,6 +26,7 @@ jobs:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
# Use the dynamically generated GitHub App token
token: ${{ steps.generate-token.outputs.token }}
# Explicitly check out the base branch (the PR is already merged into it).

View file

@ -33,6 +33,7 @@ jobs:
- name: Checkout last 500 commits (for <commits> to work)
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
fetch-depth: 500
ref: stable-f44

View file

@ -19,6 +19,9 @@ jobs:
contents: read
steps:
- uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- uses: github/ai-moderator@81159c370785e295c97461ade67d7c33576e9319 # v1
with:
token: ${{ secrets.GITHUB_TOKEN }}

View file

@ -62,6 +62,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
# FIXME: We need both actions as we run out of space on /var/tmp, however this
# will still fail sometimes as even the smallest 72G runners have a

View file

@ -16,6 +16,8 @@ jobs:
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Trigger Stable Image Build
env:

View file

@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Install Just
run: |

View file

@ -20,6 +20,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
with:
persist-credentials: false
- name: Setup Node.js
uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6