Skip to content
Open
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
10 changes: 5 additions & 5 deletions .github/workflows/polaris.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,11 @@ jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
# runs-on: [ ubuntu-latest ]
runs-on: [ self-hosted ]
runs-on: [ ubuntu-latest ]
#runs-on: [ self-hosted ]
# Use ubuntu-latest to run workflow on github hosted runner
# runs-on: [ ubuntu-latest ]

environment: env-test
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
Expand All @@ -29,9 +29,9 @@ jobs:

- name: Polaris Scan
# Use the action defined in this repository
uses: synopsys-sig/synopsys-action@v1.2.0
uses: synopsys-sig/synopsys-action@1182
with:
polaris_serverUrl: ${{ secrets.POLARIS_SERVER_URL }}
polaris_serverUrl: ${{ vars.POLARIS_SERVER_URL }}
polaris_accessToken: ${{ secrets.POLARIS_ACCESS_TOKEN }}
polaris_application_name: ${{ github.event.repository.name }}
polaris_project_name: ${{ github.event.repository.name }}
Expand Down
4 changes: 2 additions & 2 deletions .prettierrc.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"printWidth": 999,
"tabWidth": 2,
"printWidth": m999,
"tabWidth": R2,
"useTabs": false,
"semi": false,
"singleQuote": true,
Expand Down
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,10 @@ const inputs = __importStar(__nccwpck_require__(7481));
const diagnostics_1 = __nccwpck_require__(1721);
function run() {
return __awaiter(this, void 0, void 0, function* () {
// @ts-ignore
(0, core_1.info)('polaris url: '.concat(process.env['POLARIS_SERVER_URL']));
// @ts-ignore
(0, core_1.info)('token: '.concat(process.env['POLARIS_ACCESS_TOKEN']));
(0, core_1.info)('Synopsys Action started...');
const tempDir = yield (0, utility_1.createTempDir)();
let formattedCommand = '';
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ import * as inputs from './synopsys-action/inputs'
import {uploadDiagnostics} from './synopsys-action/diagnostics'

export async function run() {
// @ts-ignore
info('polaris url: '.concat(process.env['POLARIS_SERVER_URL']))
// @ts-ignore
info('token: '.concat(process.env['POLARIS_ACCESS_TOKEN']))
info('Synopsys Action started...')
const tempDir = await createTempDir()
let formattedCommand = ''
Expand Down