Skip to content
This repository has been archived by the owner on Aug 25, 2024. It is now read-only.

Commit

Permalink
[StepSecurity] ci: Harden GitHub Actions
Browse files Browse the repository at this point in the history
Signed-off-by: StepSecurity Bot <[email protected]>
  • Loading branch information
step-security-bot authored and pdxjohnny committed May 6, 2024
1 parent 905f6ff commit dc235bb
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .github/workflows/00_pr_auto_approve.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,21 @@ name: "00 PR Auto approve"

on: pull_request_target

permissions:
contents: read

jobs:
auto-approve:
runs-on: ubuntu-latest
permissions:
pull-requests: write
if: contains(fromJson('["dependabot[bot]", "github-actions[bot]", "pdxjohnny"]'), github.actor)
steps:
- uses: hmarr/auto-approve-action@v4
- name: Harden Runner
uses: step-security/harden-runner@a4aa98b93cab29d9b1101a6143fb8bce00e2eac4 # v2.7.1
with:
egress-policy: audit

- uses: hmarr/auto-approve-action@8f929096a962e83ccdfa8afcf855f39f12d4dac7 # v4
with:
review-message: "LGTM"

0 comments on commit dc235bb

Please sign in to comment.