Skip to content

pip-audit brew packages #366

pip-audit brew packages

pip-audit brew packages #366

Workflow file for this run

name: pip-audit brew packages
on:
workflow_dispatch:
schedule:
- cron: '0 8 * * *'
jobs:
audit:
runs-on: macos-latest
permissions:
# NOTE: Needed to push to the repository.
contents: write
steps:
- name: Check out this repo
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: "3.x"
- run: brew update
- run: pip install pip-audit==2.4.14
- run: brew ruby formula2requirements.rb
- run: python pip-audit-bulk
- name: Commit and push if it changed
run: |-
git config user.name "github.actions"
git config user.email "[email protected]"
git add -A
timestamp=$(date -u)
git commit -m "Latest data: ${timestamp}" || exit 0
git push