You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
echo "::warning title=Nancy Rate Limited::OSS Index rate-limited the scan; results inconclusive. Add OSSI_USERNAME and OSSI_TOKEN secrets to authenticate and lift the limit."
echo "::warning title=Nancy Payment Required::OSS Index returned 402 Payment Required; results inconclusive. Add OSSI_USERNAME and OSSI_TOKEN secrets to authenticate against your OSS Index account."
echo "1. Register a free account at <https://ossindex.sonatype.org/user/register>." >> $GITHUB_STEP_SUMMARY
249
+
echo "2. Retrieve your username (email) and API token from <https://ossindex.sonatype.org/user/settings>." >> $GITHUB_STEP_SUMMARY
250
+
echo "3. Add them as repository secrets named \`OSSI_USERNAME\` and \`OSSI_TOKEN\`." >> $GITHUB_STEP_SUMMARY
251
+
echo "" >> $GITHUB_STEP_SUMMARY
252
+
echo "Authenticated requests have a substantially higher rate limit and avoid this state." >> $GITHUB_STEP_SUMMARY
253
+
if [[ -f nancy-output.log ]]; then
254
+
echo "" >> $GITHUB_STEP_SUMMARY
255
+
echo "<details>" >> $GITHUB_STEP_SUMMARY
256
+
echo "<summary>Click to expand Nancy output</summary>" >> $GITHUB_STEP_SUMMARY
257
+
echo "" >> $GITHUB_STEP_SUMMARY
258
+
echo '```' >> $GITHUB_STEP_SUMMARY
259
+
head -50 nancy-output.log >> $GITHUB_STEP_SUMMARY
260
+
echo '```' >> $GITHUB_STEP_SUMMARY
261
+
echo "</details>" >> $GITHUB_STEP_SUMMARY
262
+
fi
263
+
# Payment-required (402): explain clearly that CI was NOT failed and how to remediate
264
+
elif [[ "$NANCY_STATUS" == "payment-required" ]]; then
265
+
echo "" >> $GITHUB_STEP_SUMMARY
266
+
echo "### ⚠️ OSS Index Payment Required (402)" >> $GITHUB_STEP_SUMMARY
267
+
echo "" >> $GITHUB_STEP_SUMMARY
268
+
echo "Sonatype's OSS Index returned **402 Payment Required**, indicating the free-tier quota for unauthenticated requests has been exhausted." >> $GITHUB_STEP_SUMMARY
269
+
echo "**This is not a vulnerability detection** and CI has **not** been failed for this run." >> $GITHUB_STEP_SUMMARY
0 commit comments