Skip to content

Commit 53c2090

Browse files
authored
Merge pull request #118 from buildkite/SUP-4236/Fixing-env-prioritization
Swapping getSecret priority
2 parents c272c3f + f339dbf commit 53c2090

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

s3secrets-helper/secrets/secrets.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,8 @@ func getSecrets(conf Config, results chan<- getResult) {
146146
}...)
147147

148148
prefixes := []string{
149-
conf.Prefix + "/secret-files",
150149
"secret-files",
150+
conf.Prefix + "/secret-files",
151151
}
152152

153153
conf.Logger.Printf("Checking S3 for secret-files")

s3secrets-helper/secrets/secrets_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,12 @@ func TestRun(t *testing.T) {
160160
// because git-credentials were found:
161161
// (wrap in double quotes so that bash eval doesn't consume the inner single quote.
162162
`GIT_CONFIG_PARAMETERS="` + gitCredentialHelpers + `"`,
163+
"ORG_SERVICE_TOKEN='org service token'",
163164
"BUILDKITE_ACCESS_KEY='buildkite access key'",
164165
"DATABASE_SECRET='database secret'",
165166
"EXTERNAL_API_SECRET_KEY='external api secret'",
166167
"PRIVILEGED_PASSWORD='privileged password'",
167168
"SERVICE_TOKEN='service token'",
168-
"ORG_SERVICE_TOKEN='org service token'",
169169
}, "\n") + "\n"
170170

171171
if actual := envSink.String(); expected != actual {

0 commit comments

Comments
 (0)