Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

workflows: fix zizmor issues #124

Merged
merged 1 commit into from
Nov 5, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
woodruffw marked this conversation as resolved.
Show resolved Hide resolved
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