Skip to content

Assign OSV IDs

Assign OSV IDs #33896

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@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
with:
token: ${{ secrets.GH_TOKEN }}
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6.3.0
with:
go-version-file: 'go.mod'
- name: Preprocess reports
run: make preprocess
- name: Assign IDs
run: |
go install github.com/google/osv/vulnfeeds/cmd/ids@v0.0.0-20251203003842-c5d66cdad501
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
if: ${{ github.ref == 'refs/heads/main' }}
run: git push