Skip to content

Commit 9c8aa3a

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

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

.github/workflows/build.yml

Lines changed: 10 additions & 2 deletions
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,12 +20,17 @@ jobs:
1720
packages: write
1821
pull-requests: write
1922
steps:
20-
- uses: vexxhost/docker-atmosphere/.github/actions/checkout@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/checkout@672cf56c8b828e444b6e7906d0ee355c7ec1dea9 # main
2129
with:
2230
repository: openstack/keystone
2331
ref: a568938e0c967a56ade269c93f42718008487b14 # master
2432

25-
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@main
33+
- uses: vexxhost/docker-atmosphere/.github/actions/build-image@672cf56c8b828e444b6e7906d0ee355c7ec1dea9 # main
2634
with:
2735
image-name: keystone
2836
build-contexts: keystone=openstack/keystone

0 commit comments

Comments
 (0)