-
Notifications
You must be signed in to change notification settings - Fork 62
48 lines (48 loc) · 1.25 KB
/
automation.yaml
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
40
41
42
43
44
45
46
47
48
name: Actions to take on pushes to main
on:
push:
branches:
- main
schedule:
- cron: '*/15 * * * *'
workflow_dispatch:
jobs:
analysis:
continue-on-error: false
name: Analysis
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 64
- uses: google/osv/actions/analyze@master
with:
analyze-git: false
pr-base: HEAD~63
skip-pattern: '.github/workflows/.*'
- run: |
git config user.name github-actions
git config user.email [email protected]
git add .
- run: git diff --cached --quiet || git commit -m 'Analysis'
- run: git push
assign:
needs: analysis
continue-on-error: false
name: Assign IDs
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v2
with:
go-version: '^1.16.4'
- run: |
go install github.com/google/osv/vulnfeeds/cmd/ids@latest
ids -dir=./vulns -prefix PYSEC
git config user.name github-actions
git config user.email [email protected]
git add .
env:
GONOPROXY: github.com/google/osv
- run: git diff --cached --quiet || git commit -m 'Assign IDs'
- run: git push