Skip to content

Commit 32c2398

Browse files
[StepSecurity] Apply security best practices (#34)
Signed-off-by: StepSecurity Bot <bot@stepsecurity.io> Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 18b1839 commit 32c2398

3 files changed

Lines changed: 21 additions & 6 deletions

File tree

.github/workflows/build.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,17 @@ jobs:
77
id-token: write # needed for trusted publishing step
88
contents: read
99
steps:
10+
- name: Harden the runner (Audit all outbound calls)
11+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
12+
with:
13+
egress-policy: audit
14+
1015
- name: Install Build Tools
1116
run: |
1217
curl -sSL https://install.python-poetry.org | python
1318
echo $HOME/.poetry/bin >> $GITHUB_PATH
14-
- uses: actions/checkout@v6
15-
- uses: actions/setup-python@v6
19+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1621
with:
1722
python-version: "3.10"
1823
- name: Install Python Requirements

.github/workflows/docs.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,17 @@ jobs:
99
permissions:
1010
contents: write
1111
steps:
12+
- name: Harden the runner (Audit all outbound calls)
13+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
14+
with:
15+
egress-policy: audit
16+
1217
- name: Install Build Tools
1318
run: |
1419
curl -sSL https://install.python-poetry.org | python
1520
echo $HOME/.poetry/bin >> $GITHUB_PATH
16-
- uses: actions/checkout@v6
17-
- uses: actions/setup-python@v6
21+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
22+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
1823
with:
1924
python-version: "3.10"
2025
- name: Install Python Requirements

.github/workflows/on_pull_request.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@ jobs:
88
permissions:
99
contents: read
1010
steps:
11+
- name: Harden the runner (Audit all outbound calls)
12+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
13+
with:
14+
egress-policy: audit
15+
1116
- name: Install Build Tools
1217
run: |
1318
mkdir -p $HOME/bin
1419
curl -sfL https://raw.githubusercontent.com/reviewdog/reviewdog/master/install.sh | sh -s -- -b $HOME/bin
1520
echo $HOME/bin >> $GITHUB_PATH
1621
curl -sSL https://install.python-poetry.org | python
1722
echo $HOME/.poetry/bin >> $GITHUB_PATH
18-
- uses: actions/checkout@v6
19-
- uses: actions/setup-python@v6
23+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
24+
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2025
with:
2126
python-version: "3.10"
2227
- name: Install Python Requirements

0 commit comments

Comments
 (0)