This repository has been archived on 2024-04-08. You can view files and clone it, but cannot push or open issues or pull requests.
dagger/tests/ops/fetch-git/private-repo/fetch-git.cue
Andrea Luzzardi f67e50a11c
test: fix op.#FetchGit test (#1395)
Signed-off-by: Andrea Luzzardi <aluzzardi@gmail.com>
2022-01-11 15:35:44 -08:00

23 lines
411 B
CUE

package op
import (
"alpha.dagger.io/os"
"alpha.dagger.io/dagger"
"alpha.dagger.io/dagger/op"
)
// Github PAT
TestPAT: dagger.#Input & {dagger.#Secret}
TestRepo: #up: [op.#FetchGit & {
remote: "https://github.com/dagger/dagger.git"
ref: "main"
authToken: TestPAT
}]
TestContent: os.#Container & {
always: true
command: "ls -l /input/repo/README.md"
mount: "/input/repo": from: TestRepo
}