Skip to content

Commit 8080333

Browse files
committed
ci(workflows): add OSS Index auth to security scans
Add OSSI_USERNAME and OSSI_TOKEN secrets to fortress workflows to enable authentication with OSS Index in the Nancy GitHub Action. This improves security scanning by allowing authenticated requests, reducing rate-limit issues and enhancing vulnerability data accuracy.
1 parent c73c34c commit 8080333

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

.github/workflows/fortress-security-scans.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,12 @@ on:
4747
gitleaks-license:
4848
description: "Gitleaks license key"
4949
required: false
50+
ossi-username:
51+
description: "OSS Index username for Nancy authentication"
52+
required: false
53+
ossi-token:
54+
description: "OSS Index token for Nancy authentication"
55+
required: false
5056

5157
permissions:
5258
contents: read
@@ -110,6 +116,9 @@ jobs:
110116
- name: 🔍 Ask Nancy
111117
uses: sonatype-nexus-community/nancy-github-action@726e338312e68ecdd4b4195765f174d3b3ce1533 # v1.0.3
112118
continue-on-error: false
119+
env: # Authentication for OSS Index (recommended)
120+
OSSI_USERNAME: ${{ secrets.ossi-username }}
121+
OSSI_TOKEN: ${{ secrets.ossi-token }}
113122
with:
114123
githubToken: ${{ secrets.github-token }} # ← prevents rate-limit 403
115124
nancyVersion: ${{ env.NANCY_VERSION }}

.github/workflows/fortress.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -163,6 +163,8 @@ jobs:
163163
secrets:
164164
github-token: ${{ secrets.GH_PAT_TOKEN != '' && secrets.GH_PAT_TOKEN || secrets.GITHUB_TOKEN }}
165165
gitleaks-license: ${{ secrets.GITLEAKS_LICENSE }}
166+
ossi-username: ${{ secrets.OSSI_USERNAME }}
167+
ossi-token: ${{ secrets.OSSI_TOKEN }}
166168
# ----------------------------------------------------------------------------------
167169
# Code Quality Checks
168170
# ----------------------------------------------------------------------------------

0 commit comments

Comments
 (0)