forked from wagov/wasocshared
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 984 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
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