Skip to content

Commit

Permalink
Fix to display version num in report for custom flow scans from GUI (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
greyguy21 authored Sep 8, 2023
1 parent d3b3f7a commit 6f2c80f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,6 @@ const scanInit = async argvs => {
data.userDataDirectory = clonedDataDir;

printMessage([`Purple HATS version: ${appVersion}`, 'Starting scan...'], messageOptions);
constants.appVersion = appVersion;

if (argvs.scanner === constants.scannerTypes.custom) {
try {
Expand Down
4 changes: 2 additions & 2 deletions mergeAxeResults.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import path from 'path';
import { fileURLToPath } from 'url';
import ejs, { compile } from 'ejs';
import constants from './constants/constants.js';
import { getCurrentTime, getStoragePath } from './utils.js';
import { getCurrentTime, getStoragePath, getVersion } from './utils.js';
import { consoleLogger, silentLogger } from './logs.js';
import itemTypeDescription from './constants/itemTypeDescription.js';
import { chromium } from 'playwright';
Expand Down Expand Up @@ -412,7 +412,7 @@ export const generateArtifacts = async (
pagesScanned,
customFlowLabel,
) => {
const phAppVersion = constants.appVersion;
const phAppVersion = getVersion();
const storagePath = getStoragePath(randomToken);
const directory = `${storagePath}/${constants.allIssueFileName}`;
const allIssues = {
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

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

0 comments on commit 6f2c80f

Please sign in to comment.