Fix Ref 20241024002 (#1063) #556
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@f677139bbe7f9c59b41e40162b753c062f5d49a3 # v5.2.0 | |
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 |