generated from ossf/project-template
-
Notifications
You must be signed in to change notification settings - Fork 23
48 lines (41 loc) · 1.12 KB
/
assign-osv-ids.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
40
41
42
43
44
45
46
47
48
name: Assign OSV IDs
on:
push:
branches:
- main
schedule:
- cron: '7 * * * *' # Once an hour
workflow_dispatch:
permissions: read-all
jobs:
assign-ids:
name: Assign IDs
continue-on-error: false
runs-on: ubuntu-latest
permissions:
actions: read
contents: write
steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: "1.21"
- name: Preprocess reports
run: make preprocess
- name: Assign IDs
run: |
go install github.com/google/osv/vulnfeeds/cmd/ids@latest
ids -dir=./osv/malicious -prefix MAL -format json
env:
GONOPROXY: github.com/google/osv
- name: Prepare commit
run: |
git config user.name github-actions
git config user.email [email protected]
git add .
- name: Commit report changes
run: git diff --cached --quiet || git commit -m 'Assign IDs'
- name: Push commit
run: git push