Skip to content

Commit 67868c7

Browse files
panvanodejs-github-bot
authored andcommitted
tools: make checkout credential use explicit
Disable credential persistence for CodeQL. Signed-off-by: Filip Skokan <panva.ip@gmail.com> Assisted-by: Codex PR-URL: #66013 Reviewed-By: Antoine du Hamel <duhamelantoine1995@gmail.com> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Xuguang Mei <meixuguang@gmail.com> Reviewed-By: Ulises Gascón <ulisesgascongonzalez@gmail.com>
1 parent 11ed325 commit 67868c7

2 files changed

Lines changed: 3 additions & 0 deletions

File tree

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ jobs:
2525
steps:
2626
- name: Checkout repository
2727
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
28+
with:
29+
persist-credentials: false
2830

2931
# Initializes the CodeQL tools for scanning.
3032
- name: Initialize CodeQL

.github/workflows/commit-queue.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -188,6 +188,7 @@ jobs:
188188
# to be set here because `checkout` configures GitHub authentication
189189
# for push as well.
190190
token: ${{ secrets.GH_USER_TOKEN }}
191+
persist-credentials: true
191192

192193
- name: Start the Commit Queue
193194
if: steps.get_mergeable_prs.outputs.numbers != ''

0 commit comments

Comments
 (0)