Skip to content
Open
Show file tree
Hide file tree
Changes from 2 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
4 changes: 4 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -85682,6 +85682,7 @@ async function validateVeracodeApiCreds(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const checkStatic = {
owner: ownership.owner,
Expand Down Expand Up @@ -85743,6 +85744,7 @@ async function validatePolicyName(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const checkStatic = {
owner: ownership.owner,
Expand Down Expand Up @@ -86245,6 +86247,7 @@ async function preparePipelineResults(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
if (!(0, inputs_1.vaildateScanResultsActionInput)(inputs)) {
core.setFailed('token, check_run_id and source_repository are required.');
Expand Down Expand Up @@ -86470,6 +86473,7 @@ const http = __importStar(__nccwpck_require__(37542));
async function preparePolicyResults(inputs) {
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const repo = inputs.source_repository.split('/');
const ownership = {
Expand Down
2 changes: 2 additions & 0 deletions dist/services/application-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,7 @@ async function validateVeracodeApiCreds(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const checkStatic = {
owner: ownership.owner,
Expand Down Expand Up @@ -224,6 +225,7 @@ async function validatePolicyName(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const checkStatic = {
owner: ownership.owner,
Expand Down
1 change: 1 addition & 0 deletions dist/services/pipeline-results-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,7 @@ async function preparePipelineResults(inputs) {
};
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
if (!(0, inputs_1.vaildateScanResultsActionInput)(inputs)) {
core.setFailed('token, check_run_id and source_repository are required.');
Expand Down
1 change: 1 addition & 0 deletions dist/services/policy-results-services.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ const http = __importStar(require("../api/http-request"));
async function preparePolicyResults(inputs) {
const octokit = new rest_1.Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});
const repo = inputs.source_repository.split('/');
const ownership = {
Expand Down
2 changes: 2 additions & 0 deletions src/services/application-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -142,6 +142,7 @@ export async function validateVeracodeApiCreds(inputs: Inputs): Promise<string |

const octokit = new Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});

const checkStatic: Checks.ChecksStatic = {
Expand Down Expand Up @@ -224,6 +225,7 @@ export async function validatePolicyName(inputs: Inputs): Promise<void> {

const octokit = new Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});

const checkStatic: Checks.ChecksStatic = {
Expand Down
1 change: 1 addition & 0 deletions src/services/pipeline-results-service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ export async function preparePipelineResults(inputs: Inputs): Promise<void> {

const octokit = new Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});

// When the action is preparePolicyResults, need to make sure token,
Expand Down
1 change: 1 addition & 0 deletions src/services/policy-results-services.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import * as http from '../api/http-request';
export async function preparePolicyResults(inputs: Inputs): Promise<void> {
const octokit = new Octokit({
auth: inputs.token,
baseUrl: process.env.GITHUB_API_URL,
});

const repo = inputs.source_repository.split('/');
Expand Down