patch: replace language specific CDX with CDXgen + add OSV#1184
Draft
aethernet wants to merge 2 commits into
Draft
patch: replace language specific CDX with CDXgen + add OSV#1184aethernet wants to merge 2 commits into
aethernet wants to merge 2 commits into
Conversation
Contributor
|
Website deployed to CF Pages, 👀 preview link https://3aee2cd2.flowzone.pages.dev |
cf80ecb to
e169359
Compare
e169359 to
c0ef231
Compare
Comment on lines
+967
to
+1018
| name: Generate SBOM | ||
| runs-on: ubuntu-latest | ||
| continue-on-error: true | ||
| needs: | ||
| - versioned_source | ||
| if: ${{ inputs.generate_sbom == true }} | ||
| defaults: | ||
| run: | ||
| working-directory: ${{ inputs.working_directory }} | ||
| shell: bash --noprofile --norc -eo pipefail -x {0} | ||
| steps: | ||
| - name: Generate GitHub App installation token | ||
| uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a | ||
| continue-on-error: true | ||
| id: gh_app_token | ||
| with: | ||
| app_id: ${{ inputs.app_id }} | ||
| installation_retrieval_mode: id | ||
| installation_retrieval_payload: ${{ inputs.installation_id }} | ||
| private_key: ${{ secrets.GH_APP_PRIVATE_KEY }} | ||
| permissions: |- | ||
| { | ||
| "contents": "read", | ||
| "metadata": "read" | ||
| } | ||
| - name: Checkout versioned commit | ||
| uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 | ||
| with: | ||
| fetch-depth: ${{ needs.versioned_source.outputs.depth || 0 }} | ||
| fetch-tags: true | ||
| submodules: recursive | ||
| ref: ${{ needs.versioned_source.outputs.sha || '¯ (ツ)_/¯' }} | ||
| token: ${{ steps.gh_app_token.outputs.token || secrets.FLOWZONE_TOKEN }} | ||
| - name: Create local tag for draft version | ||
| if: github.event.pull_request.state == 'open' && inputs.disable_versioning != true | ||
| run: | | ||
| git update-ref refs/tags/${{ needs.versioned_source.outputs.tag }} ${{ needs.versioned_source.outputs.tag_sha }} | ||
| - name: Setup Node.js | ||
| uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 | ||
| with: | ||
| node-version: 22.x | ||
| - name: Install CDXGen | ||
| run: npm install -g @cyclonedx/cdxgen | ||
| - name: Generate SBOM | ||
| run: cdxgen -o ${{ runner.temp }}/sbom.json | ||
| - name: Publish SBOM artifacts | ||
| uses: actions/upload-artifact@50769540e7f4bd5e21e526ee35c689e35e0d6874 | ||
| with: | ||
| name: gh-release-sbom | ||
| path: ${{ runner.temp }}/sbom.json | ||
| retention-days: 90 | ||
| osv: |
Check warning
Code scanning / CodeQL
Workflow does not contain permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
test cdxgen + osv