20240814001 Update (#938) #463
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Send advisory | |
on: | |
push: | |
branches: ['main'] | |
env: # sendgrid api token | |
sendgrid_api: ${{ secrets.SENDGRID_API }} | |
permissions: | |
contents: read | |
jobs: | |
send-modified-files: | |
name: Send advisory files created in last hour | |
runs-on: ubuntu-latest | |
environment: | |
name: communication | |
steps: | |
- name: Harden Runner | |
uses: step-security/harden-runner@0d381219ddf674d61a7572ddd19d7941e271515c # v2.9.0 | |
with: | |
egress-policy: audit | |
- name: Checkout docs | |
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7 | |
with: | |
fetch-depth: 2 | |
- uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1 | |
with: | |
python-version: '3.11' | |
cache: 'pip' # caching pip dependencies | |
- name: install requirements | |
run: pip install -r requirements.txt | |
- name: Send advisories | |
run: ./.github/scripts/send-advisory.py --auto |