Skip to content

Commit 8e0b4bf

Browse files
authored
Harden CI (#594)
1 parent cfab0ee commit 8e0b4bf

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
pull_request:
1010
branches: [ main ]
1111

12+
permissions:
13+
contents: read # to fetch code (actions/checkout)
14+
1215
jobs:
1316
build:
1417

@@ -21,6 +24,8 @@ jobs:
2124

2225
steps:
2326
- uses: actions/checkout@v3
27+
with:
28+
persist-credentials: false
2429

2530
- name: Use Node.js version ${{ matrix.node-version }}
2631
uses: actions/setup-node@v3

.github/workflows/codeql.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,8 @@ jobs:
3939
steps:
4040
- name: Checkout repository
4141
uses: actions/checkout@v3
42+
with:
43+
persist-credentials: false
4244

4345
# Initializes the CodeQL tools for scanning.
4446
- name: Initialize CodeQL

0 commit comments

Comments
 (0)