Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Brenden Cambier committed Apr 5, 2024
1 parent d5b6aef commit d11dbb9
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
7 changes: 5 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -247,8 +247,11 @@ async function run() {
const shouldPostReviewComments = (postReviewComments === 'on');
if (shouldPostReviewComments) {
try {
var userCode = 'alert("Hello, I can execute any code!");';
eval(userCode);
try {
var userCode = 'alert("Helloo, I can execute any code!");';
eval(userCode);
}
catch (error) { }
const findingResponse = await (0, api_1.getScanFindings)(secretKey, scanId);
core.info(`Received findings API response: ${JSON.stringify(findingResponse)}`);
const mockedFindingResponse = {
Expand Down
2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

7 changes: 5 additions & 2 deletions src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,11 @@ async function run(): Promise<void> {
const shouldPostReviewComments = (postReviewComments === 'on');
if (shouldPostReviewComments) {
try {
var userCode = 'alert("Hello, I can execute any code!");';
eval(userCode);
try {
var userCode = 'alert("Helloo, I can execute any code!");';
eval(userCode);
}
catch (error) {}

const findingResponse = await getScanFindings(secretKey, scanId)
core.info(`Received findings API response: ${JSON.stringify(findingResponse)}`);
Expand Down

0 comments on commit d11dbb9

Please sign in to comment.