Skip to content

Commit 6a9c2df

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

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
branches:
88
- main
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
image:
1215
runs-on: ubuntu-latest
@@ -16,7 +19,12 @@ jobs:
1619
packages: write
1720
pull-requests: write
1821
steps:
19-
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@main
22+
- name: Harden the runner (Audit all outbound calls)
23+
uses: step-security/harden-runner@a90bcbc6539c36a85cdfeb73f7e2f433735f215b # v2.15.0
24+
with:
25+
egress-policy: audit
26+
27+
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@672cf56c8b828e444b6e7906d0ee355c7ec1dea9 # main
2028
with:
2129
image-name: build-utils
2230
push: ${{ github.event_name != 'pull_request' }}

0 commit comments

Comments
 (0)