Skip to content

Commit

Permalink
Use step-security/harden-runner
Browse files Browse the repository at this point in the history
Turning on harden-runner in "audit" mode is the first step in hardening github workflow jobs.

For more details see https://github.com/step-security/harden-runner

Signed-off-by: Dave Thaler <dthaler1968@gmail.com>
  • Loading branch information
dthaler committed Jul 26, 2024
1 parent d04265a commit 8c5ac50
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/AIForOrcas.Client.Web.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
Expand All @@ -59,6 +62,9 @@ jobs:
needs:
- build
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Artifacts cache
uses: actions/cache@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/AIForOrcas.Server.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
Expand All @@ -57,6 +60,9 @@ jobs:
needs:
- build
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Artifacts cache
uses: actions/cache@v2
with:
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/NotificationSystem.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,9 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout
uses: actions/checkout@v2
- name: Setup .NET Core
Expand All @@ -53,6 +56,9 @@ jobs:
needs:
- build
steps:
- uses: step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Artifacts cache
uses: actions/cache@v2
with:
Expand Down

0 comments on commit 8c5ac50

Please sign in to comment.