Skip to content

Commit b42f2dc

Browse files
chore(ci): apply security best practices (#174)
Co-authored-by: stepsecurity-app[bot] <188008098+stepsecurity-app[bot]@users.noreply.github.com>
1 parent 07ae9a6 commit b42f2dc

2 files changed

Lines changed: 25 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17+
- name: Harden the runner (Audit all outbound calls)
18+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
19+
with:
20+
egress-policy: audit
21+
1722
- name: Checkout code
1823
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
1924

.github/workflows/release-to-central.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ jobs:
3333
version: ${{ steps.vars.outputs.version }}
3434
tag: ${{ steps.vars.outputs.tag }}
3535
steps:
36+
- name: Harden the runner (Audit all outbound calls)
37+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
38+
with:
39+
egress-policy: audit
40+
3641
- name: Validate version format
3742
id: vars
3843
shell: bash
@@ -84,6 +89,11 @@ jobs:
8489
runs-on: ubuntu-latest
8590
needs: validate
8691
steps:
92+
- name: Harden the runner (Audit all outbound calls)
93+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
94+
with:
95+
egress-policy: audit
96+
8797
- name: Check out source
8898
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
8999
with:
@@ -107,6 +117,11 @@ jobs:
107117
environment:
108118
name: maven-central-prod
109119
steps:
120+
- name: Harden the runner (Audit all outbound calls)
121+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
122+
with:
123+
egress-policy: audit
124+
110125
- name: Check out source
111126
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
112127
with:
@@ -142,6 +157,11 @@ jobs:
142157
permissions:
143158
contents: write
144159
steps:
160+
- name: Harden the runner (Audit all outbound calls)
161+
uses: step-security/harden-runner@fa2e9d605c4eeb9fcad4c99c224cee0c6c7f3594 # v2.16.0
162+
with:
163+
egress-policy: audit
164+
145165
- name: Check out source
146166
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
147167
with:

0 commit comments

Comments
 (0)