Skip to content

Commit 2249470

Browse files
committed
Improve GitHub Actions workflow security
1 parent 7723839 commit 2249470

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ concurrency:
1212
group: ${{ github.workflow }}-${{ github.event_name }}-${{ github.ref_name }}
1313
cancel-in-progress: true
1414

15+
permissions: {}
16+
1517
jobs:
1618
test:
1719
runs-on: ubuntu-latest
@@ -34,6 +36,8 @@ jobs:
3436
steps:
3537
- name: Check out repository
3638
uses: actions/checkout@v6
39+
with:
40+
persist-credentials: false
3741

3842
- name: Set up Python
3943
uses: actions/setup-python@v6

0 commit comments

Comments
 (0)