Skip to content

Commit 6c9fb21

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

1 file changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- main
99
- stable/**
1010

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

0 commit comments

Comments
 (0)