Skip to content

Commit

Permalink
function key for cydig
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanna Ahlskog committed Oct 2, 2023
1 parent 6d8e3ee commit 1eebe02
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -28284,10 +28284,9 @@ class ComplianceStateService {
// POST-request to Azure function
let urlUpload = process.env.urlUpload || '';
const uploadKey = process.env.uploadKey || '';
urlUpload = urlUpload + uploadKey;
urlUpload = uploadKey;
const bodyBuilder = new BodyBuilder_1.BodyBuilder();
const responseBody = bodyBuilder.createBody(teamName, codeRepositoryName, subscriptionId);
console.log("urlUpload: " + urlUpload);
await axios_1.default
.post(urlUpload, responseBody, {
headers: {
Expand Down
4 changes: 1 addition & 3 deletions src/lib/ComplianceStateService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,14 @@ export class ComplianceStateService {
// POST-request to Azure function
let urlUpload: string = process.env.urlUpload || '';
const uploadKey: string = process.env.uploadKey || '';
urlUpload = urlUpload + uploadKey;
urlUpload = uploadKey;

const bodyBuilder: BodyBuilder = new BodyBuilder();
const responseBody: ResponseBody = bodyBuilder.createBody(
teamName,
codeRepositoryName,
subscriptionId
);

console.log("!!!urlUpload: " + urlUpload)
await axios
.post(urlUpload, responseBody, {
headers: {
Expand Down

0 comments on commit 1eebe02

Please sign in to comment.