Skip to content

Commit e457e59

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

3 files changed

Lines changed: 19 additions & 0 deletions

File tree

.github/workflows/ci-actions.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: ["**"]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
zizmor:
1114
name: zizmor latest via PyPI
@@ -15,6 +18,11 @@ jobs:
1518
contents: read
1619
actions: read
1720
steps:
21+
- name: Harden the runner (Audit all outbound calls)
22+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
23+
with:
24+
egress-policy: audit
25+
1826
- name: Checkout repository
1927
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2028
with:

.github/workflows/ci-chart.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,18 @@ on:
88
- charts/**
99
- .github/workflows/ci-chart.yaml
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
lint-test:
1316
runs-on: ubuntu-latest
1417
steps:
18+
- name: Harden the runner (Audit all outbound calls)
19+
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0
20+
with:
21+
egress-policy: audit
22+
1523
- name: Checkout
1624
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1725
with:

.github/workflows/ci-code.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
- Cargo.*
1010
- .github/workflows/ci-code.yaml
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
rustfmt:
1417
name: rustfmt

0 commit comments

Comments
 (0)