Skip to content

Commit 68d88f4

Browse files
committed
ci: add minimum GitHub at the workflow level for pip-tools.yaml
Signed-off-by: Ashish Kurmi <[email protected]>
1 parent a24edd8 commit 68d88f4

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

.github/workflows/pip-tools.yaml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,9 @@ on:
1111
# Run weekly on day 0 at 00:00 UTC
1212
- cron: "0 0 * * 0"
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
update-dependencies:
1619
permissions:
@@ -20,8 +23,13 @@ jobs:
2023
name: Update dependencies
2124
runs-on: ubuntu-latest
2225
steps:
23-
- uses: actions/checkout@v3
24-
- uses: actions/setup-python@v4
26+
- name: Harden Runner
27+
uses: step-security/harden-runner@dd2c410b088af7c0dc8046f3ac9a8f4148492a95
28+
with:
29+
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs
30+
31+
- uses: actions/checkout@2541b1294d2704b0964813337f33b291d3f8596b
32+
- uses: actions/setup-python@b55428b1882923874294fa556849718a1d7f2ca5
2533
with:
2634
python-version: "3.10"
2735
- name: Install test dependencies
@@ -51,7 +59,7 @@ jobs:
5159
run: pip-compile --upgrade --output-file=requirements/deploy.txt requirements/deploy.in
5260

5361
- name: Create Pull Request
54-
uses: peter-evans/create-pull-request@v4
62+
uses: peter-evans/create-pull-request@171dd555b9ab6b18fa02519fdfacbb8bf671e1b4
5563
with:
5664
add-paths: |
5765
requirements/*.txt

0 commit comments

Comments
 (0)