Add secret management to op.#FetchGit operation to fetch private repository

- Update `op.cue` to support secrets
- Update `pipeline.go` to use authTokenSecret & authHeaderSecret

Signed-off-by: Tom Chauveau <tom.chauveau@epitech.eu>
This commit is contained in:
Tom Chauveau
2021-08-25 17:41:06 +02:00
committed by Guillaume de Rouville
parent 1c6d437d2a
commit d7194f161d
2 changed files with 34 additions and 18 deletions

View File

@@ -87,8 +87,8 @@ package op
ref: string
keepGitDir?: bool
// FIXME: the two options are currently ignored until we support buildkit secrets
authTokenSecret?: string | bytes
authHeaderSecret?: string | bytes
authTokenSecret?: _ @dagger(secret)
authHeaderSecret?: _ @dagger(secret)
}
#FetchHTTP: {