<@U07RLUFFH7W> hi, running `make testacc` in the m...
# atmos-dev
a
@Haitham hi, running
make testacc
in the main, and getting this error (both in Github flow and locally):
Copy code
=== RUN   TestExecuteVendorPull
2025/03/17 20:24:04 INFO Vendoring from 'vendor.yaml'
2025/03/17 20:24:04 WARN No TTY detected. Falling back to basic output. This can happen when no terminal is attached or when commands are pipelined.
2025/03/17 20:24:05 ERRO Failed to pull OCI image image=ghcr.io/cloudposse/atmos/tests/fixtures/components/terraform/myapp:v0 error="GET https://ghcr.io/token?scope=repository%3Acloudposse%2Fatmos%2Ftests%2Ffixtures%2Fcomponents%2Fterraform%2Fmyapp%3Apull&service=ghcr.io: UNAUTHORIZED: authentication required"
2025/03/17 20:24:05 ERRO Failed to vendor myapp1: error : myapp1: failed to process OCI image: failed to pull image: failed to pull image 'ghcr.io/cloudposse/atmos/tests/fixtures/components/terraform/myapp:v0': GET https://ghcr.io/token?scope=repository%3Acloudposse%2Fatmos%2Ftests%2Ffixtures%2Fcomponents%2Fterraform%2Fmyapp%3Apull&service=ghcr.io: UNAUTHORIZED: authentication required
2025/03/17 20:24:05 INFO x myapp1 (v0)
2025/03/17 20:25:12 INFO ✓ github/stargazers (main)
2025/03/17 20:25:12 INFO ✓ test-components (main)
2025/03/17 20:25:50 INFO ✓ weather (main)
2025/03/17 20:25:50 INFO ✓ myapp2 
2025/03/17 20:25:50 INFO Vendored 4 components. Failed to vendor 1 components.

2025/03/17 20:25:50 INFO Vendored 5 components.

    vendor_utils_test.go:115: 
        	Error Trace:	C:/Users/nadia/Desktop/projects/atmos/internal/exec/vendor_utils_test.go:115
        	Error:      	Received unexpected error:
        	            	failed to vendor components: 1
        	Test:       	TestExecuteVendorPull
--- FAIL: TestExecuteVendorPull (106.75s)
Was just wondering, if you had issue like this when you worked on Fix OCI PR? if I try to access this repo using my token, I'm getting access denied, while other public repos are accesible. E.g. like this
Copy code
nadia@ANALITIKASI MINGW64 ~/Desktop/projects/atmos (main)
$ docker pull ghcr.io/cloudposse/atmos/tests/fixtures/components/terraform/myapp:v0
Error response from daemon: denied

nadia@ANALITIKASI MINGW64 ~/Desktop/projects/atmos (main)
$ docker pull ghcr.io/stefanprodan/podinfo:latest
latest: Pulling from stefanprodan/podinfo
f18232174bc9: Downloading  1.444MB/3.642MB
a44ca8345dfa: Downloading  567.1kB/2.662MB
4f4fb700ef54: Download complete
e
Ok, so 2 things.
I think it's working in GHA and for @Haitham b/c he sets
GITHUB_TOKEN=$(gh auth token)
🙌 1
✅ 1
But we should support anonymous pulls
We can do that in a separate PR
v
forgot to say also, make testacc is broken in my local with Test: TestExecuteVendorPull
➕ 1
e
@Vinny set the
GITHUB_TOKEN
like above
✅ 1
h
@Andrey Kalmykov you have to set env GITHUB_TOKEN export GITHUB_TOKEN=$(gh auth token)
✅ 1
a
@Haitham @Erik Osterman (Cloud Posse) FYI, this is a server log at GitHub, and it shows this error. This is at the very beginning of the log, the end of the log says these tests passed, but this error at the beginning is still there at GitHub
e
We've merged other PRs today and they don't have this problem.
👀 1
@Vinny rebased his PR just recently from main, and it's working. https://github.com/cloudposse/atmos/pull/1036
v
can you send the link @Andrey Kalmykov where this issue is happening?
a
@Vinny hi, it seems I found the issue, it is related to the new go getter code that I have, so no need to review the logs. The second issue though is that we have a test case with a private oci image repo. I guess , it should be public, so people could run/reproduce it those locally. Do you know who uploaded this/owns it? Is it you or @Erik Osterman (Cloud Posse)? Can we make it public by any chance?
e
I would like to - and it was not deliberate that it was private
🙌 1