You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,10 +53,10 @@ The following instructions show how to setup the environment to run this code wi
53
53
| CODEARTIFACT_DOMAIN_OWNER | Owner (AWS acc) for the AWS CodeArtifact domain. Also used when [using CodeArtifact with AWS Cli](https://docs.aws.amazon.com/cli/latest/reference/codeartifact/login.html) |
54
54
| CODEARTIFACT_DURATION | Duration of the AWS CodeArtifact authToken. |
55
55
| CODEARTIFACT_DOMAIN | AWS CodeArtifact Domain for which access is required. Also used when [using CodeArtifact with AWS Cli](https://docs.aws.amazon.com/cli/latest/reference/codeartifact/login.html) |
56
-
| GITHUB_PRIVATE_KEY | GitHub secret for GitHub App authentication |
57
-
| DEPENDABOT_OWNER | Owner of the GitHub organization |
58
56
| DEPENDABOT_ORG | The GitHub organization for which the secret should be created |
57
+
| GITHUB_PRIVATE_KEY | GitHub secret for GitHub App authentication |
59
58
| GITHUB_APP_ID | The ID of the GitHub App used for authentication |
59
+
| GITHUB_APP_TOKEN | GitHub App token used for encrypting secrets |
60
60
61
61
- Using env variables
62
62
1. Setup environment variables regarding [point 1 from installation](#setup)
@@ -75,7 +75,7 @@ The following instructions show how to setup the environment to run this code wi
Copy file name to clipboardExpand all lines: main.go
+3-3Lines changed: 3 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -21,10 +21,10 @@ import (
21
21
22
22
funcsetupViper() {
23
23
var (
24
-
organization=flag.String("DEPENDABOT_ORG", os.Getenv("DEPENDABOT_ORG"), "the GitHub organization for which the secret should be created")
25
24
githubSecret=flag.String("GITHUB_PRIVATE_KEY", os.Getenv("GITHUB_PRIVATE_KEY"), "GitHub secret for GitHub App authentication")
26
25
githubAppID=flag.String("GITHUB_APP_ID", os.Getenv("GITHUB_APP_ID"), "the ID of the GitHub App used for authentication")
27
-
organizationOwner=flag.String("DEPENDABOT_OWNER", os.Getenv("DEPENDABOT_OWNER"), " owner of the GitHub organization")
26
+
githubAppToken=flag.String("GITHUB_APP_TOKEN", os.Getenv("GITHUB_APP_TOKEN"), "the token of the GitHub App used for authentication")
27
+
organization=flag.String("DEPENDABOT_ORG", os.Getenv("DEPENDABOT_ORG"), "the GitHub organization for which the secret should be created")
28
28
tokenDuration=flag.String("CODEARTIFACT_DURATION", os.Getenv("CODEARTIFACT_DURATION"), "duration of the AWS CodeArtifact authToken")
29
29
codeartifactDomain=flag.String("CODEARTIFACT_DOMAIN", os.Getenv("CODEARTIFACT_DOMAIN"), "AWS CodeArtifact Domain for which access is required")
30
30
codeartifactDomainOwner=flag.String("CODEARTIFACT_DOMAIN_OWNER", os.Getenv("CODEARTIFACT_DOMAIN_OWNER"), "owner (AWS acc) for the AWS CodeArtifact domain")
0 commit comments