Skip to content
This repository has been archived by the owner on Mar 25, 2022. It is now read-only.

Commit

Permalink
fix: lockfile and manifest file path
Browse files Browse the repository at this point in the history
  • Loading branch information
mathild3r committed Dec 10, 2021
1 parent f45db67 commit fff2989
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 9 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,9 +1,15 @@
name: PNPM-PR-Snyk-Check

on:
on:
pull_request:
branches:
- fix/AddMonorepoSupportTest
- master
push:
branches:
- '*'
- fix/AddMonorepoSupportTest
- master
workflow_dispatch:

jobs:
pnpm_snyk_check:
Expand All @@ -16,9 +22,8 @@ jobs:
uses: ./
with:
snykToken: ${{ secrets.SNYK_TOKEN }}
pnpmLockfilePath: "./test/fixtures/pnpm_simple"
pnpmLockfilePath: "."
snykOrganization: "playground"
manifestfilePath: "./test/fixtures/pnpm_simple"
IncludeDev: "true"


2 changes: 2 additions & 0 deletions .secrets
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
GITHUB_TOKEN=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
SNYK_TOKEN=6a717da5-cd68-4cde-8f4a-30f122eff5f9
7 changes: 2 additions & 5 deletions src/lib/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ const runAction = async () => {
try{
const snykToken: string = core.getInput('snykToken');
const snykOrganization: string = core.getInput('snykOrganization');
const path: string = core.getInput('pnpmLockfilePath') == '.' ? '/' : core.getInput('pnpmLockfilePath');
const manifestPath = core.getInput('manifestfilePath') == '.' ? '/' : core.getInput('manifestfilePath');
const path: string = core.getInput('pnpmLockfilePath');
const manifestPath: string = core.getInput('manifestfilePath');
const includeDev: string = core.getInput('includeDev');

checkSnykToken(snykToken)
Expand All @@ -30,9 +30,6 @@ const runAction = async () => {
process.argv.push(manifestPath)
}

console.log("process.argv", process.argv)
console.log("manifestPath", manifestPath)

const packageLock = await apiTool.main();

console.log(packageLock.exitCode)
Expand Down

0 comments on commit fff2989

Please sign in to comment.