Skip to content

Commit 70b9862

Browse files
[StepSecurity] ci: Harden GitHub Actions (#293)
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent 0d9c320 commit 70b9862

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

.github/workflows/pythonpackage.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010

1111
workflow_dispatch: {}
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
build:
1518
runs-on: ubuntu-latest
@@ -19,6 +22,11 @@ jobs:
1922
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
2023

2124
steps:
25+
- name: Harden Runner
26+
uses: step-security/harden-runner@v2
27+
with:
28+
egress-policy: audit
29+
2230
- uses: actions/checkout@v4
2331

2432
- name: Set up Python ${{ matrix.python-version }}

.github/workflows/semantic-release.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ jobs:
1111
environment: production
1212
runs-on: [ ubuntu-latest ]
1313
steps:
14+
- name: Harden Runner
15+
uses: step-security/harden-runner@v2
16+
with:
17+
egress-policy: audit
18+
1419
- uses: actions/checkout@v4
1520
with:
1621
token: ${{ secrets.COMMIT_TOKEN }}

0 commit comments

Comments
 (0)