Skip to content

Commit

Permalink
Merge pull request #124 from Homebrew/ww/zizmor
Browse files Browse the repository at this point in the history
  • Loading branch information
woodruffw authored Nov 5, 2024
2 parents f67b903 + e6483b2 commit 852e636
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/workflows/audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
# credentials intentionally persisted for git operations below
persist-credentials: true

- uses: actions/setup-python@v5
with:
Expand Down Expand Up @@ -51,3 +53,8 @@ jobs:
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push
auto-pr:
needs: [audit]
uses: ./.github/workflows/auto-pr.yml
secrets: inherit
14 changes: 10 additions & 4 deletions .github/workflows/auto-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,20 @@ on:
inputs:
pr-limit:
required: true
default: "5"
default: 5
type: number
dry-run:
required: true
default: true
type: boolean
workflow_run:
workflows: ["pip-audit brew packages"]
types: [completed]
workflow_call:
inputs:
pr-limit:
default: 5
type: number
dry-run:
default: false # don't dry-run by default when called from another workflow
type: boolean

jobs:
auto-pr:
Expand All @@ -34,6 +39,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
persist-credentials: false

- name: Set up Homebrew
id: set-up-homebrew
Expand Down

0 comments on commit 852e636

Please sign in to comment.