Skip to content

Commit 640c6d5

Browse files
[StepSecurity] Apply security best practices
Signed-off-by: StepSecurity Bot <[email protected]>
1 parent eebf892 commit 640c6d5

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/python.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
11
name: python
22
on: [push]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
build:
69
runs-on: ubuntu-latest
710
steps:
8-
- uses: actions/checkout@v4
11+
- name: Harden the runner (Audit all outbound calls)
12+
uses: step-security/harden-runner@f4a75cfd619ee5ce8d5b864b0d183aff3c69b55a # v2.13.1
13+
with:
14+
egress-policy: audit
15+
16+
- uses: actions/checkout@08eba0b27e820071cde6df949e0beb9ba4906955 # v4.3.0
917
- name: Set up Python
10-
uses: actions/setup-python@v4
18+
uses: actions/setup-python@7f4fc3e22c37d6ff65e88745f38bd3157c663f7c # v4.9.1
1119
with:
1220
python-version: '3.9'
1321

@@ -24,4 +32,4 @@ jobs:
2432
run: make tests
2533

2634
- name: Upload coverage to Codecov
27-
uses: codecov/codecov-action@v3
35+
uses: codecov/codecov-action@ab904c41d6ece82784817410c45d8b8c02684457 # v3.1.6

0 commit comments

Comments
 (0)