Skip to content

Commit

Permalink
chore: SP-1978 Upgrades default runtime container version to v1.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
agustingroh committed Dec 20, 2024
1 parent 754bd8b commit 2d16be6
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions __tests__/copyleft-policy-check.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ describe('CopyleftPolicyCheck', () => {
await copyleftPolicyCheck.run();
//neutral cause policy policy halt on failure is not set
expect(copyleftPolicyCheck.conclusion).toEqual(CONCLUSION.Neutral);
}, 30000);
}, 50000);

it('Copyleft policy empty results', async () => {
const TEST_DIR = __dirname;
Expand All @@ -81,7 +81,7 @@ describe('CopyleftPolicyCheck', () => {
await copyleftPolicyCheck.run();
//neutral cause policy policy halt on failure is not set
expect(copyleftPolicyCheck.conclusion).toEqual(CONCLUSION.Success);
}, 30000);
}, 50000);

it('Copyleft policy explicit licenses', async () => {
const TEST_DIR = __dirname;
Expand Down
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ inputs:
required: false
runtimeContainer:
description: 'Specify runtime container to perform the scan.'
default: 'ghcr.io/scanoss/scanoss-py:v1.18.1'
default: 'ghcr.io/scanoss/scanoss-py:v1.19.0'
required: false
skipSnippets:
description: 'Skip the generation of snippets.'
Expand Down
11 changes: 7 additions & 4 deletions dist/index.js

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

2 changes: 1 addition & 1 deletion src/app.input.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ export const COPYLEFT_LICENSE_INCLUDE = core.getInput('licenses.copyleft.include
export const COPYLEFT_LICENSE_EXCLUDE = core.getInput('licenses.copyleft.exclude');
export const COPYLEFT_LICENSE_EXPLICIT = core.getInput('licenses.copyleft.explicit');
export const REPO_DIR = process.env.GITHUB_WORKSPACE as string;
export const RUNTIME_CONTAINER = core.getInput('runtimeContainer') || 'ghcr.io/scanoss/scanoss-py:v1.18.1';
export const RUNTIME_CONTAINER = core.getInput('runtimeContainer') || 'ghcr.io/scanoss/scanoss-py:v1.19.0';
export const SKIP_SNIPPETS = core.getInput('skipSnippets') === 'true';
export const SCAN_FILES = core.getInput('scanFiles') === 'true';
export const SCANOSS_SETTINGS = core.getInput('scanossSettings') === 'true';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
*/

import { ArgumentBuilder } from './argument-builder';
import { OUTPUT_FILEPATH, REPO_DIR, RUNTIME_CONTAINER, SCANOSS_SETTINGS } from '../../app.input';
import { OUTPUT_FILEPATH, REPO_DIR, RUNTIME_CONTAINER } from '../../app.input';

export class UndeclaredArgumentBuilder extends ArgumentBuilder {
async build(): Promise<string[]> {
Expand Down
2 changes: 1 addition & 1 deletion src/services/scan.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ export interface Options {
inputFilepath: string;

/**
* Runtime container to perform scan. Default [ghcr.io/scanoss/scanoss-py:v1.18.0]
* Runtime container to perform scan. Default [ghcr.io/scanoss/scanoss-py:v1.19.0]
*/
runtimeContainer: string;

Expand Down

0 comments on commit 2d16be6

Please sign in to comment.