Skip to content

Commit c9329ae

Browse files
Update GitHub Actions workflows to disable credential persistence in checkout steps
1 parent 28ffd8d commit c9329ae

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ jobs:
2020
- name: Checkout
2121
id: checkout
2222
uses: actions/checkout@v5
23+
with:
24+
persist-credentials: false
2325

2426
- name: Setup Node.js
2527
id: setup-node
@@ -52,6 +54,8 @@ jobs:
5254
- name: Checkout
5355
id: checkout
5456
uses: actions/checkout@v5
57+
with:
58+
persist-credentials: false
5559

5660
- name: Test Local Action
5761
id: test-action

.github/workflows/codeql-analysis.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,8 @@ jobs:
4141
steps:
4242
- name: Checkout repository
4343
uses: actions/checkout@v5
44+
with:
45+
persist-credentials: false
4446

4547
# Initializes the CodeQL tools for scanning.
4648
- name: Initialize CodeQL

.github/workflows/linter.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
uses: actions/checkout@v5
2525
with:
2626
fetch-depth: 0
27+
persist-credentials: false
2728

2829
- name: Setup Node.js
2930
id: setup-node
@@ -38,7 +39,7 @@ jobs:
3839

3940
- name: Lint Codebase
4041
id: super-linter
41-
uses: super-linter/super-linter/slim@v8
42+
uses: super-linter/super-linter/slim@2bdd90ed3262e023ac84bf8fe35dc480721fc1f2 # v8.2.1
4243
env:
4344
DEFAULT_BRANCH: main
4445
FILTER_REGEX_EXCLUDE: dist/**/*

0 commit comments

Comments
 (0)