Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions .github/actions/install-packages/action.yml
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
45 changes: 45 additions & 0 deletions .github/workflows/dtrack-sbom.workflow.yaml
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
Comment on lines +17 to +18

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge Checkout step pinned to nonexistent v6 tag

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 👍 / 👎.


- 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

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P1 Badge SBOM workflow uses unsupported setup-node v6

The same workflow calls actions/setup-node@v6, while the supported tags used elsewhere in the repo are v4; GitHub will error resolving this version, preventing Node from being set up and blocking SBOM generation on every release/prerelease run.

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 warning

Code 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 Autofix

AI 7 days ago

To fix the problem, add a permissions: block explicitly specifying the minimal required permissions for the workflow's context. In most publish/read-only SBOM scenarios, contents: read is sufficient, as the job does not need to write to the repository, only to read its contents. This block can be placed at the top level (before jobs:), which will apply to all jobs in the workflow unless overridden, or just to the job in question. Since only one job is present, either position is acceptable, but placing it at the top level both makes intent clear and allows for future extensibility. The best and minimal way is to insert the following immediately after the name: line (line 1):

permissions:
  contents: read

No further changes, imports, or definitions are required.


Suggested changeset 1
.github/workflows/dtrack-sbom.workflow.yaml

Autofix patch

Autofix patch
Run the following command in your local git repository to apply this patch
cat << 'EOF' | git apply
diff --git a/.github/workflows/dtrack-sbom.workflow.yaml b/.github/workflows/dtrack-sbom.workflow.yaml
--- a/.github/workflows/dtrack-sbom.workflow.yaml
+++ b/.github/workflows/dtrack-sbom.workflow.yaml
@@ -1,4 +1,6 @@
 name: Dtrack SBOM publish
+permissions:
+  contents: read
 
 env:
   NODE_VERSION: "24"
EOF
@@ -1,4 +1,6 @@
name: Dtrack SBOM publish
permissions:
contents: read

env:
NODE_VERSION: "24"
Copilot is powered by AI and may make mistakes. Always verify output.
2 changes: 1 addition & 1 deletion .github/workflows/push_branches.workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.SEMANTIC_RELEASE_GHP }}
SEMANTIC_RELEASE_NPM_PUBLISH: "true"
SEMANTIC_RELEASE_SLACK_WEBHOOK: ${{ secrets.SEMANTIC_RELEASE_SLACK_WEBHOOK }}
run: npx semantic-release
Expand Down
12 changes: 12 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
## [7.17.0-beta.2](https://github.com/kuzzleio/sdk-javascript/compare/v7.17.0-beta.1...v7.17.0-beta.2) (2025-12-16)

### Bug Fixes

* use custom github token to allow sequantial workflow creation ([b3109fe](https://github.com/kuzzleio/sdk-javascript/commit/b3109fe04e9315535e990dbe4b89187a9ed0f867))

## [7.17.0-beta.1](https://github.com/kuzzleio/sdk-javascript/compare/v7.16.0...v7.17.0-beta.1) (2025-12-16)

### Features

* publish sbom to dtrack ([09d874a](https://github.com/kuzzleio/sdk-javascript/commit/09d874a9d9415afca61a192467a59ba56e558c56))

## [7.16.0](https://github.com/kuzzleio/sdk-javascript/compare/v7.15.1...v7.16.0) (2025-12-16)

### Features
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kuzzle-sdk",
"version": "7.16.0",
"version": "7.17.0-beta.2",
"description": "Official Javascript SDK for Kuzzle",
"author": "The Kuzzle Team <support@kuzzle.io>",
"repository": {
Expand Down