Skip to content

Commit e8f86a6

Browse files
committed
fix: skip CVE audit steps gracefully when OSS_INDEX secrets are not configured
1 parent 5295638 commit e8f86a6

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

.github/workflows/cve-scanning.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,8 @@ jobs:
4141
working-directory: website
4242

4343
- run: npx --yes auditjs ossi --whitelist allow-list.json -u ${{ secrets.OSS_INDEX_USERNAME }} -p ${{ secrets.OSS_INDEX_TOKEN }}
44-
if: success() || failure()
44+
if: (success() || failure()) && secrets.OSS_INDEX_USERNAME != ''
4545

4646
- run: npx --yes auditjs ossi --whitelist ../allow-list.json -u ${{ secrets.OSS_INDEX_USERNAME }} -p ${{ secrets.OSS_INDEX_TOKEN }}
4747
working-directory: website
48-
if: success() || failure()
48+
if: (success() || failure()) && secrets.OSS_INDEX_USERNAME != ''

0 commit comments

Comments
 (0)