Skip to content

Commit

Permalink
Fix missing token
Browse files Browse the repository at this point in the history
Was wrong merge of #16
  • Loading branch information
adangel committed Dec 10, 2021
1 parent 426e841 commit 0003536
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js

Large diffs are not rendered by default.

5 changes: 4 additions & 1 deletion lib/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,10 @@ const reportFile = 'pmd-report.sarif'
async function main() {
let pmdInfo, execOutput, violations;
try {
pmdInfo = await util.downloadPmd(validator.validateVersion(core.getInput('version'), { required: true }));
pmdInfo = await util.downloadPmd(
validator.validateVersion(core.getInput('version'), { required: true }),
core.getInput('token', { required: true })
);
execOutput = await util.executePmd(pmdInfo,
validator.validateSourcePath(core.getInput('sourcePath', { required: true })),
validator.validateRulesets(core.getInput('rulesets', { required: true })),
Expand Down

0 comments on commit 0003536

Please sign in to comment.