Skip to content

Commit

Permalink
feat: added step-security
Browse files Browse the repository at this point in the history
  • Loading branch information
prisis committed May 20, 2024
1 parent a377305 commit bd2c2f6
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 1 deletion.
5 changes: 5 additions & 0 deletions workflow/allo-allo.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,11 @@ jobs:
runs-on: "ubuntu-latest"

steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"

- name: "AlloAllo"
uses: "mechanical-ink/allo-allo@v1.0.1"
with:
Expand Down
5 changes: 5 additions & 0 deletions workflow/lock-closed.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,11 @@ jobs:
if: "github.repository == inputs.target-repo"
runs-on: "ubuntu-latest"
steps:
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"

- uses: "dessant/lock-threads@v5"
with:
issue-inactive-days: "${{ inputs.issue-inactive-days }}"
13 changes: 12 additions & 1 deletion workflow/set-default-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,18 @@ jobs:
if: "github.repository == inputs.target-repo"
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
- name: "Harden Runner"
uses: "step-security/harden-runner@63c24ba6bd7ba022e95695ff85de572c04a18142" # v2.7.0
with:
egress-policy: "audit"

- name: "Git checkout"
uses: "actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11" # v4.1.1
env:
GIT_COMMITTER_NAME: "GitHub Actions Shell"
GIT_AUTHOR_NAME: "GitHub Actions Shell"
EMAIL: "github-actions[bot]@users.noreply.github.com"

- uses: "crazy-max/ghaction-github-labeler@de749cf181958193cb7debf1a9c5bb28922f3e1b" # v5.0.0
with:
github-token: "${{ secrets.GITHUB_TOKEN }}"
Expand Down

0 comments on commit bd2c2f6

Please sign in to comment.