From 3df42ba9dfbeac5f748342b4a0956c955095fc74 Mon Sep 17 00:00:00 2001 From: Kevin Longmuir Date: Fri, 6 Mar 2026 08:29:38 -0500 Subject: [PATCH] chore: release 2.0.2 --- README.md | 30 +++++++++++++++--------------- ci/image.Dockerfile | 2 +- package-lock.json | 4 ++-- package.json | 6 ++++-- scripts/install.sh | 2 +- src/commands/scan/eol.ts | 1 - 6 files changed, 23 insertions(+), 22 deletions(-) diff --git a/README.md b/README.md index 574c7efc..d94c7df7 100644 --- a/README.md +++ b/README.md @@ -43,11 +43,11 @@ npm install -g @herodevs/cli HeroDevs CLI is available as a binary installation, without requiring `npm`. To do that, you may either download and run the script manually, or use the following cURL or Wget command: ```sh -curl -o- https://raw.githubusercontent.com/herodevs/cli/v2.0.1/scripts/install.sh | bash +curl -o- https://raw.githubusercontent.com/herodevs/cli/v2.0.2/scripts/install.sh | bash ``` ```sh -wget -qO- https://raw.githubusercontent.com/herodevs/cli/v2.0.1/scripts/install.sh | bash +wget -qO- https://raw.githubusercontent.com/herodevs/cli/v2.0.2/scripts/install.sh | bash ``` ## Scanning Behavior @@ -71,8 +71,8 @@ Maven and Gradle projects should run an install and build before scanning $ npm install -g @herodevs/cli $ hd COMMAND running command... -$ hd (--version) -@herodevs/cli/2.0.0 darwin-arm64 node-v24.10.0 +$ hd (--version|-v) +@herodevs/cli/2.0.2 darwin-arm64 node-v24.14.0 $ hd --help [COMMAND] USAGE $ hd COMMAND @@ -104,7 +104,7 @@ DESCRIPTION OAuth CLI login ``` -_See code: [src/commands/auth/login.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/auth/login.ts)_ +_See code: [src/commands/auth/login.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/auth/login.ts)_ ## `hd auth logout` @@ -118,7 +118,7 @@ DESCRIPTION Logs out of HeroDevs OAuth and clears stored tokens ``` -_See code: [src/commands/auth/logout.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/auth/logout.ts)_ +_See code: [src/commands/auth/logout.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/auth/logout.ts)_ ## `hd auth provision-ci-token` @@ -132,7 +132,7 @@ DESCRIPTION Provision a CI/CD long-lived refresh token for headless auth ``` -_See code: [src/commands/auth/provision-ci-token.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/auth/provision-ci-token.ts)_ +_See code: [src/commands/auth/provision-ci-token.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/auth/provision-ci-token.ts)_ ## `hd help [COMMAND]` @@ -166,10 +166,10 @@ USAGE FLAGS -c, --csv Output in CSV format -d, --directory= Directory to search - -e, --afterDate= [default: 2025-02-26] Start date (format: yyyy-MM-dd) + -e, --afterDate= [default: 2025-03-06] Start date (format: yyyy-MM-dd) -m, --months= [default: 12] The number of months of git history to review. Cannot be used along beforeDate and afterDate - -s, --beforeDate= [default: 2026-02-26] End date (format: yyyy-MM-dd) + -s, --beforeDate= [default: 2026-03-06] End date (format: yyyy-MM-dd) -s, --save Save the committers report as herodevs.committers. -x, --exclude=... Path Exclusions (eg -x="./src/bin" -x="./dist") --json Output to JSON format @@ -188,7 +188,7 @@ EXAMPLES $ hd report committers --csv ``` -_See code: [src/commands/report/committers.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/report/committers.ts)_ +_See code: [src/commands/report/committers.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/report/committers.ts)_ ## `hd scan eol` @@ -239,7 +239,7 @@ EXAMPLES $ hd scan eol --json ``` -_See code: [src/commands/scan/eol.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/scan/eol.ts)_ +_See code: [src/commands/scan/eol.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/scan/eol.ts)_ ## `hd tracker init` @@ -273,7 +273,7 @@ EXAMPLES $ hd tracker init -o ``` -_See code: [src/commands/tracker/init.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/tracker/init.ts)_ +_See code: [src/commands/tracker/init.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/tracker/init.ts)_ ## `hd tracker run` @@ -298,7 +298,7 @@ EXAMPLES $ hd tracker run -d tracker -f settings.json ``` -_See code: [src/commands/tracker/run.ts](https://github.com/herodevs/cli/blob/v2.0.0-beta.16/src/commands/tracker/run.ts)_ +_See code: [src/commands/tracker/run.ts](https://github.com/herodevs/cli/blob/v2.0.2/src/commands/tracker/run.ts)_ ## `hd update [CHANNEL]` @@ -327,7 +327,7 @@ EXAMPLES Update to a specific version: - $ hd update --version 1.0.0 + $ hd update --version 2.0.0 Interactively select version: @@ -400,7 +400,7 @@ eol-scan: - herodevs.report.json ``` -### Using the Docker Image (Recommended) +### Using the Docker Image We provide a Docker image that's pre-configured to run EOL scans. Based on [`cdxgen`](https://github.com/CycloneDX/cdxgen), it contains build tools for most project types and will provide best results when generating an SBOM. Use these templates to generate a report and save it to your CI job artifact for analysis and processing after your scan runs. diff --git a/ci/image.Dockerfile b/ci/image.Dockerfile index e1a96681..1ba9b985 100644 --- a/ci/image.Dockerfile +++ b/ci/image.Dockerfile @@ -3,7 +3,7 @@ ENV NODE_NO_WARNINGS=1 \ NPM_CONFIG_UPDATE_NOTIFIER=false \ NPM_CONFIG_LOGLEVEL=error WORKDIR /app -ARG VERSION=2.0.1 +ARG VERSION=2.0.2 USER root RUN npm install -g @herodevs/cli@${VERSION} COPY --chmod=755 ci/docker-entrypoint.sh /usr/local/bin/hd-entrypoint diff --git a/package-lock.json b/package-lock.json index 1acbaf0b..145f49a9 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "@herodevs/cli", - "version": "2.0.1", + "version": "2.0.2", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "@herodevs/cli", - "version": "2.0.1", + "version": "2.0.2", "license": "MIT", "dependencies": { "@amplitude/analytics-node": "^1.5.26", diff --git a/package.json b/package.json index 854d0f9b..e9c7504b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@herodevs/cli", - "version": "2.0.1", + "version": "2.0.2", "author": "HeroDevs, Inc", "bin": { "hd": "./bin/run.js" @@ -97,7 +97,9 @@ "license": "MIT", "main": "dist/index.js", "oclif": { - "additionalVersionFlags": ["-v"], + "additionalVersionFlags": [ + "-v" + ], "bin": "hd", "dirname": "hd", "commands": "./dist/commands", diff --git a/scripts/install.sh b/scripts/install.sh index 40c1a1d0..0ca4b3bf 100755 --- a/scripts/install.sh +++ b/scripts/install.sh @@ -32,7 +32,7 @@ INSTALL_DIR="$HOME/.herodevs" BIN_DIR="$INSTALL_DIR/bin" GITHUB_API_URL="https://api.github.com/repos/${REPO_OWNER}/${REPO_NAME}/releases" TMP_DIR="" -LATEST_VERSION="v2.0.1" +LATEST_VERSION="v2.0.2" DEBUG=${DEBUG:-} # Colors for output diff --git a/src/commands/scan/eol.ts b/src/commands/scan/eol.ts index f87e97ae..76881c29 100644 --- a/src/commands/scan/eol.ts +++ b/src/commands/scan/eol.ts @@ -82,7 +82,6 @@ export default class ScanEol extends Command { default: false, description: 'Mark scan as automated (for CI/CD pipelines)', }), - version: Flags.version(), }; public async run(): Promise {