Skip to content

Commit

Permalink
function key for update
Browse files Browse the repository at this point in the history
  • Loading branch information
Johanna Ahlskog committed Oct 2, 2023
1 parent 8a8582f commit 9aae4f6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,12 @@ npm run format:write
Start developing and create tests, to run your test run: `npm run test`. When pushing the code the repository the workflow will build and push your code to the repository.

### How to trigger the dev-function for upload-compliance-state
1. Ensure that a secret named ```urlUpdateDev``` has been created. [(Read more here on how to create a GitHub secret)](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)
2. Make sure the secret is an environment variable ```urlUpdate``` in the workflow you are invoking.
1. Ensure that a secret named ```URLUPDATEDEV``` has been created. [(Read more here on how to create a GitHub secret)](https://docs.github.com/en/actions/security-guides/using-secrets-in-github-actions#creating-secrets-for-a-repository)
2. Make sure the secret is set as an environment variable ```urlUpdate``` in the workflow you are invoking.

```
env:
urlUpdate: ${{ secrets.urlUpdateDev }}
urlUpdate: ${{ secrets.URLUPDATEDEV }}
```

### How to log the badge
Expand Down
3 changes: 1 addition & 2 deletions src/lib/UrlBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export class UrlBuilder {
//Please update the url if there are any changes to the infrastructure.
const urlDashboard: string = "https://cydig.omegapoint.cloud/";
//Please update the func url if there are any changes to the infrastructure.
const readFunctionURL: string = 'https://func-cydig-comp-state-prod.azurewebsites.net/api/ReadToReadme?';
const readFunctionURL: string = 'https://func-cydig-comp-state-prod.azurewebsites.net/api/ReadToReadme?code=';
//Please update the url if there are any changes to the infrastructure.
const readToReadMeKeyAcessKey: string = 'xaEvCDsaK01y2Z6SBivwOKndN4o915lpOTt1VkmULgsxgsjkml7u1DOhgULzmAPX';

Expand All @@ -28,7 +28,6 @@ export class UrlBuilder {
//timestamp
encodedURL = encodeURIComponent(
readFunctionURL +
'code=' +
readToReadMeKeyAcessKey +
'&teamName=' +
encodeURIComponent(teamName) +
Expand Down

0 comments on commit 9aae4f6

Please sign in to comment.