Repository navigation
ci: add Mend scan workflow for releases - #862
Conversation
|
|
Important
This repository does not receive automatic reviews because it has fewer than 10 stars. ⚙️ Run configuration
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
View your CI Pipeline Execution ↗ for commit 5cbd7cc
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗ ☁️ Nx Cloud last updated this comment at |
168920f to
bec2840
Compare
4f7db53 to
c66ce45
Compare
c66ce45 to
27889dc
Compare
ryanbas21
left a comment
There was a problem hiding this comment.
Overall if it works i'm happy, just left one comment regarding an env block instead of inline possibly.
| export MEND_SAST_TOTAL_VULNERABILITIES_COUNT=$(jq '.[0].stats.totalVulnerabilities' ${{ inputs.MEND_SAST_REPORT_NAME }}.json) | ||
| export MEND_SAST_CRITICAL_COUNT=$(jq '.[0].stats.critical' ${{ inputs.MEND_SAST_REPORT_NAME }}.json) | ||
| export MEND_SAST_HIGH_COUNT=$(jq '.[0].stats.high' ${{ inputs.MEND_SAST_REPORT_NAME }}.json) | ||
| export MEND_SAST_MEDIUM_COUNT=$(jq '.[0].stats.medium' ${{ inputs.MEND_SAST_REPORT_NAME }}.json) | ||
| export MEND_SAST_LOW_COUNT=$(jq '.[0].stats.low' ${{ inputs.MEND_SAST_REPORT_NAME }}.json) | ||
| export MEND_SAST_SCAN_URL=$(grep -Eo '(http|https)://saas\.whitesourcesoftware\.com[^ ]+' ${{ inputs.MEND_SAST_REPORT_NAME }}.txt | head -n 1) | ||
| echo "MEND_SAST_TOTAL_VULNERABILITIES_COUNT=$MEND_SAST_TOTAL_VULNERABILITIES_COUNT" >> $GITHUB_ENV | ||
| echo "MEND_SAST_CRITICAL_COUNT=$MEND_SAST_CRITICAL_COUNT" >> $GITHUB_ENV | ||
| echo "MEND_SAST_HIGH_COUNT=$MEND_SAST_HIGH_COUNT" >> $GITHUB_ENV | ||
| echo "MEND_SAST_MEDIUM_COUNT=$MEND_SAST_MEDIUM_COUNT" >> $GITHUB_ENV | ||
| echo "MEND_SAST_LOW_COUNT=$MEND_SAST_LOW_COUNT" >> $GITHUB_ENV | ||
| echo "MEND_SAST_SCAN_URL=$MEND_SAST_SCAN_URL" >> $GITHUB_ENV |
There was a problem hiding this comment.
This is fine - but perhaps brittle, couldn't we do this in an env: block?
There was a problem hiding this comment.
Is that possible? I think you need to use bash to do this. This reads from the report json and stores those values in variables on the gh environment. I thought the env: block was intended for static values or reading from GH defined inputs or secrets or vars.
be0aaf5 to
aa54510
Compare
@forgerock/davinci-client
@forgerock/device-client
@forgerock/journey-client
@forgerock/oidc-client
@forgerock/protect
@forgerock/recognize
@forgerock/sdk-types
@forgerock/sdk-utilities
@forgerock/iframe-manager
@forgerock/sdk-logger
@forgerock/sdk-oidc
@forgerock/sdk-request-middleware
@forgerock/storage
commit: |
|
Deployed 066da8e to https://ForgeRock.github.io/ping-javascript-sdk/pr-862/066da8e5628adad283f173d0a16b042dc1c018f8 branch gh-pages in ForgeRock/ping-javascript-sdk |
Interface Mapping Out of DateThe Drift reportTo fix, run: pnpm mapping:generateThen commit the updated |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #862 +/- ##
===========================================
+ Coverage 18.07% 96.29% +78.22%
===========================================
Files 155 1 -154
Lines 24398 81 -24317
Branches 1203 17 -1186
===========================================
- Hits 4410 78 -4332
+ Misses 19988 3 -19985 🚀 New features to boost your workflow:
|
📦 Bundle Size Analysis📦 Bundle Size Analysis🚨 Significant Changes🔻 @forgerock/journey-client - 0.0 KB (-95.4 KB, -100.0%) ➖ No Changes➖ @forgerock/recognize - 5605.5 KB 15 packages analyzed • Baseline from latest Legend🆕 New package ℹ️ How bundle sizes are calculated
🔄 Updated automatically on each push to this PR |
787d29f to
f37efe8
Compare
409006b to
f365d1f
Compare
| MEND_URL: ${{ inputs.MEND_SERVER_URL }} | ||
| MEND_SAST_PATH_EXCLUSIONS: '/node_modules/,/dist/,/coverage/,/out-tsc/,/temp/' | ||
| shell: bash | ||
| run: mend code --dir ${{ inputs.scan_dir }} --scope 'Mobile//unified-sdk-javascript' --retries 2 --non-interactive --report --filename ${{ inputs.MEND_SAST_REPORT_NAME }} --formats json --name ${{ inputs.MEND_SAST_REPORT_NAME }}_$(date +%s) > ${{ inputs.MEND_SAST_REPORT_NAME }}.txt |
There was a problem hiding this comment.
We can hide the scope in a GitHub secret or var if it's a concern but I don't really think this is sensitive information.
| echo '```' >> $GITHUB_STEP_SUMMARY | ||
| echo "</details>" >> $GITHUB_STEP_SUMMARY | ||
|
|
||
| # Step 1: Decide Check Conclusion |
There was a problem hiding this comment.
Leaving these "Check" steps in case we decide to run this as part of PR CI in the future. This tells Github to mark the Mend scan check with a green checkmark (success) or red X (failure) next to the commit hash.
425fddb to
30aa269
Compare
30aa269 to
ec5892f
Compare
There was a problem hiding this comment.
This runs the steps in the order we specify them instead of alphabetically
There was a problem hiding this comment.
Nx Cloud has identified a flaky task in your failed CI:
🔂 Since the failure was identified as flaky, we triggered a CI rerun by adding an empty commit to this branch.
🎓 Learn more about Self-Healing CI on nx.dev
ryanbas21
left a comment
There was a problem hiding this comment.
approved pending us running this scan off a branch
JIRA Ticket
https://pingidentity.atlassian.net/browse/SDKS-5468
Description
packages/directory to generate security reports for releasesSample report:
https://github.com/ForgeRock/ping-javascript-sdk/actions/runs/39470642163?pr=862