Skip to content

Commit

Permalink
Fix undefined repo
Browse files Browse the repository at this point in the history
* Log only what we need, not the full eventJSON, for security purposes.
  • Loading branch information
Andrew committed Jan 9, 2023
1 parent 6ed248f commit cceda55
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -71325,7 +71325,7 @@ octokit
async function start() {
// validate key first
if (shouldValidate) {
core.debug(`Event JSON: ${JSON.stringify(eventJSON)}`);
core.debug(`eventJSON.repository.full_name: ${eventJSON.repository.full_name}`);
await keygen.ValidateKey(eventJSON);
}

Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ octokit
async function start() {
// validate key first
if (shouldValidate) {
core.debug(`Event JSON: ${JSON.stringify(eventJSON)}`);
core.debug(`eventJSON.repository.full_name: ${eventJSON.repository.full_name}`);
await keygen.ValidateKey(eventJSON);
}

Expand Down

0 comments on commit cceda55

Please sign in to comment.