Skip to content

Commit a88177a

Browse files
authored
ci: remove all existing advisories before generating (#151)
This will help ensure that advisories that are no longer being generated are not retained in the database, which isn't handled by our scripts since this situation should only ever happen when we've made a change to our scripts to fix a bug
1 parent c5fa4dd commit a88177a

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

.github/workflows/generate.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
- run: poetry install
3131
- run: poetry run scripts/download_sa_advisories.py
3232
- run: poetry run scripts/precache_nodes.py
33+
- run: rm -rf advisories/
3334
- run: poetry run scripts/generate_osv_advisories.py
3435
- uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 # v8.1.0
3536
with:

0 commit comments

Comments
 (0)