Skip to content

Commit d490f08

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

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

.github/workflows/size_labels.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,21 @@ name: "Pull request size labels"
22

33
on: [pull_request]
44

5+
permissions:
6+
contents: read
7+
58
jobs:
69
labeler:
710
permissions:
811
pull-requests: write
912
contents: read
1013
runs-on: ubuntu-latest
1114
steps:
15+
- name: Harden the runner (Audit all outbound calls)
16+
uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0
17+
with:
18+
egress-policy: audit
19+
1220
- name: Size Labeler
1321
uses: codelytv/pr-size-labeler@095a41fca88b8764fd9e008ad269bcdb82bb38b9
1422
with:

0 commit comments

Comments
 (0)