Skip to content

Commit 35bffdc

Browse files
committed
Harden jobs
1 parent cf1580b commit 35bffdc

File tree

2 files changed

+7
-0
lines changed

2 files changed

+7
-0
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ on:
55
tags:
66
- '*'
77

8+
permissions: {}
9+
810
jobs:
911
build:
1012
if: github.repository == 'jazzband/django-simple-menu'
@@ -14,6 +16,7 @@ jobs:
1416
- uses: actions/checkout@v4
1517
with:
1618
fetch-depth: 0
19+
persist-credentials: false
1720

1821
- name: Set up Python
1922
uses: actions/setup-python@v5

.github/workflows/test.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ on:
1010
env:
1111
FORCE_COLOR: "1"
1212

13+
permissions: {}
14+
1315
jobs:
1416
build:
1517
name: build (Python ${{ matrix.python-version }}, Django ${{ matrix.django-version }})
@@ -53,6 +55,8 @@ jobs:
5355

5456
steps:
5557
- uses: actions/checkout@v4
58+
with:
59+
persist-credentials: false
5660

5761
- name: Set up Python ${{ matrix.python-version }}
5862
uses: actions/setup-python@v5

0 commit comments

Comments
 (0)