-
Notifications
You must be signed in to change notification settings - Fork 17
Release #768
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Release #768
Changes from all commits
09d874a
5bcd8a5
76654ad
1935c5b
7436049
b3109fe
eb634fe
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| name: Install Packages | ||
| description: Install necessary packages inside the CI | ||
|
|
||
| runs: | ||
| using: "composite" | ||
| steps: | ||
| - run: sudo apt update && sudo apt install libunwind-dev libunwind8 -y | ||
| shell: bash |
| Original file line number | Diff line number | Diff line change | |||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,45 @@ | |||||||||||||||||||||||
| name: Dtrack SBOM publish | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| env: | |||||||||||||||||||||||
| NODE_VERSION: "24" | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| on: | |||||||||||||||||||||||
| release: | |||||||||||||||||||||||
| types: | |||||||||||||||||||||||
| - released | |||||||||||||||||||||||
| - prereleased | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| jobs: | |||||||||||||||||||||||
| publish-sbom-to-dtrack: | |||||||||||||||||||||||
| name: Publish SBOM to Dependency-Track | |||||||||||||||||||||||
| runs-on: ubuntu-24.04 | |||||||||||||||||||||||
| steps: | |||||||||||||||||||||||
| - name: Checkout project | |||||||||||||||||||||||
| uses: actions/checkout@v6 | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - name: Install additional libraries | |||||||||||||||||||||||
| uses: ./.github/actions/install-packages | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - name: Node version ${{ env.NODE_VERSION }} | |||||||||||||||||||||||
| uses: actions/setup-node@v6 | |||||||||||||||||||||||
|
Comment on lines
+23
to
+24
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
The same workflow calls Useful? React with 👍 / 👎. |
|||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| node-version: ${{ env.NODE_VERSION }} | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - run: npm install | |||||||||||||||||||||||
| - name: Create SBOM with CycloneDX | |||||||||||||||||||||||
| run: npx @cyclonedx/cyclonedx-npm -o bom.xml --of=XML | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - name: Get the current project version from package.json | |||||||||||||||||||||||
| id: get-version | |||||||||||||||||||||||
| run: | | |||||||||||||||||||||||
| echo "version=$(jq -r .version package.json)" >> $GITHUB_OUTPUT | |||||||||||||||||||||||
|
|
|||||||||||||||||||||||
| - name: Publish SBOM to Dependency-Track | |||||||||||||||||||||||
| uses: DependencyTrack/gh-upload-sbom@v3 | |||||||||||||||||||||||
| with: | |||||||||||||||||||||||
| serverhostname: ${{ secrets.DEPENDENCYTRACK_HOSTNAME }} | |||||||||||||||||||||||
| apikey: ${{ secrets.DEPENDENCYTRACK_APIKEY }} | |||||||||||||||||||||||
| projectname: 'Kuzzle SDK JavaScript' | |||||||||||||||||||||||
| projectversion: '${{ steps.get-version.outputs.version }}' | |||||||||||||||||||||||
| bomfilename: "./bom.xml" | |||||||||||||||||||||||
| autocreate: true | |||||||||||||||||||||||
|
Comment on lines
+14
to
+45
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 7 days ago To fix the problem, add a permissions:
contents: readNo further changes, imports, or definitions are required.
Suggested changeset
1
.github/workflows/dtrack-sbom.workflow.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Refresh and try again.
|
|||||||||||||||||||||||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The new release SBOM workflow references
actions/checkout@v6, but that action is only published up to v4 in this repo’s other workflows; using an unpublished tag causes GitHub to fail the job before the repository is even checked out, so every release/prerelease event will abort before generating or uploading the SBOM.Useful? React with 👍 / 👎.