Skip to content

Commit 4d6c73d

Browse files
committed
feat: Use harden runner everywhere (audit first)
1 parent f250fad commit 4d6c73d

3 files changed

Lines changed: 53 additions & 20 deletions

File tree

.github/workflows/ci.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,17 @@ jobs:
204204
needs: test
205205
if: github.ref_type == 'tag'
206206
steps:
207+
- name: Harden Runner
208+
uses: step-security/harden-runner@v2.14.0
209+
with:
210+
egress-policy: audit
211+
allowed-endpoints: >
212+
files.pythonhosted.org:443
213+
github.com:443
214+
release-assets.githubusercontent.com:443
215+
api.github.com:443
216+
pypi.org:443
217+
207218
- uses: actions/checkout@v6
208219
- uses: actions/setup-python@v6
209220
with:

.github/workflows/docs_pages.yaml

Lines changed: 31 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -8,28 +8,39 @@ jobs:
88
build-docs:
99
runs-on: ubuntu-latest
1010
steps:
11-
- name: Checkout
12-
uses: actions/checkout@v6
13-
with:
14-
fetch-depth: 0
11+
- name: Harden Runner
12+
uses: step-security/harden-runner@v2.14.0
13+
with:
14+
egress-policy: audit
15+
allowed-endpoints: >
16+
files.pythonhosted.org:443
17+
github.com:443
18+
release-assets.githubusercontent.com:443
19+
api.github.com:443
20+
pypi.org:443
1521
16-
- name: Set up Python '3.13'
17-
uses: actions/setup-python@v6
18-
with:
19-
python-version: '3.13'
22+
- name: Checkout
23+
uses: actions/checkout@v6
24+
with:
25+
fetch-depth: 0
2026

21-
- name: Install uv and set the python version
22-
uses: astral-sh/setup-uv@v7
23-
with:
24-
python-version: ${{ matrix.python-version }}
27+
- name: Set up Python '3.13'
28+
uses: actions/setup-python@v6
29+
with:
30+
python-version: '3.13'
2531

26-
- name: Install airflow-dbt-python with uv
27-
run: uv sync --all-extras --group docs
32+
- name: Install uv and set the python version
33+
uses: astral-sh/setup-uv@v7
34+
with:
35+
python-version: ${{ matrix.python-version }}
2836

29-
- name: Install Graphviz
30-
run: sudo apt-get install graphviz
37+
- name: Install airflow-dbt-python with uv
38+
run: uv sync --all-extras --group docs
3139

32-
- name: Build documentation
33-
run: |
34-
cd docs/
35-
uv run python -m sphinx -T -b dirhtml -d _build/doctrees . html
40+
- name: Install Graphviz
41+
run: sudo apt-get install graphviz
42+
43+
- name: Build documentation
44+
run: |
45+
cd docs/
46+
uv run python -m sphinx -T -b dirhtml -d _build/doctrees . html

.github/workflows/pypi_deploy.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ jobs:
77
deploy:
88
runs-on: ubuntu-latest
99
steps:
10+
- name: Harden Runner
11+
uses: step-security/harden-runner@v2.14.0
12+
with:
13+
egress-policy: audit
14+
allowed-endpoints: >
15+
files.pythonhosted.org:443
16+
github.com:443
17+
release-assets.githubusercontent.com:443
18+
api.github.com:443
19+
pypi.org:443
20+
1021
- uses: actions/checkout@v6
1122
- uses: actions/setup-python@v6
1223
with:

0 commit comments

Comments
 (0)