We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 632660c commit 807cf96Copy full SHA for 807cf96
tools/ghsecrets/main.go
@@ -50,16 +50,16 @@ func main() {
50
}
51
52
53
- // Ensure secretID starts with "testsecrets/"
54
- secretID = ensurePrefix(secretID, "testsecrets/")
55
-
56
switch strings.ToLower(backend) {
57
case "github":
58
if err := setGitHubSecret(filePath, secretID); err != nil {
59
exitWithError(err, "Failed to set GitHub secret")
60
return
61
62
case "aws":
+ // Ensure AWS secretID starts with "testsecrets/" prefix
+ // GHA IAM role has a policy that restricts access to secrets with this prefix
+ secretID = ensurePrefix(secretID, "testsecrets/")
63
if err := setAWSSecret(filePath, secretID, sharedWith); err != nil {
64
exitWithError(err, "Failed to set AWS secret")
65
0 commit comments