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:
parent
2e7a4111f0
commit
97ad97024f
7 changed files with 13 additions and 0 deletions
1
.github/workflows/cherry-pick-to-stable.yml
vendored
1
.github/workflows/cherry-pick-to-stable.yml
vendored
|
|
@ -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).
|
||||
|
|
|
|||
1
.github/workflows/generate-release.yml
vendored
1
.github/workflows/generate-release.yml
vendored
|
|
@ -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
|
||||
|
||||
|
|
|
|||
3
.github/workflows/moderator.yml
vendored
3
.github/workflows/moderator.yml
vendored
|
|
@ -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 }}
|
||||
|
|
|
|||
2
.github/workflows/reusable-build.yml
vendored
2
.github/workflows/reusable-build.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -16,6 +16,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Trigger Stable Image Build
|
||||
env:
|
||||
|
|
|
|||
2
.github/workflows/validate-just.yml
vendored
2
.github/workflows/validate-just.yml
vendored
|
|
@ -20,6 +20,8 @@ jobs:
|
|||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7
|
||||
with:
|
||||
persist-credentials: false
|
||||
|
||||
- name: Install Just
|
||||
run: |
|
||||
|
|
|
|||
2
.github/workflows/validate-renovate.yml
vendored
2
.github/workflows/validate-renovate.yml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue