-
Notifications
You must be signed in to change notification settings - Fork 35
39 lines (33 loc) · 1019 Bytes
/
send-advisory.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
name: Send advisory
on:
push:
branches: [main]
pull_request:
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@63c24ba6bd7ba022e95695ff85de572c04a18142 # v2.7.0
with:
egress-policy: audit
- name: Checkout docs
uses: actions/checkout@0ad4b8fadaa221de15dcec353f45205ec38ea70b # v4.1.4
with:
fetch-depth: 2
- uses: actions/setup-python@82c7e631bb3cdc910f68e0081d67478d79c6982d # v5.1.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