Skip to content

Commit 2915d0b

Browse files
committed
Improve GitHub Actions workflow security
1 parent e67c16c commit 2915d0b

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
@@ -35,6 +37,8 @@ jobs:
3537
steps:
3638
- name: Check out repository
3739
uses: actions/checkout@v6
40+
with:
41+
persist-credentials: false
3842

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

0 commit comments

Comments
 (0)