Skip to content

Assign OSV IDs

Assign OSV IDs #9533

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@1d96c772d19495a3b5c517cd2bc0cb401ea0529f # v4.1.3
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-go@0c52d547c9bc32b1aa3301fd7a9cb496313a4491 # v5.0.0
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 github-actions@github.com
git add .
- name: Commit report changes
run: git diff --cached --quiet || git commit -m 'Assign IDs'
- name: Push commit
run: git push