Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The change fetching robot is still broken for specs and docs #99

Closed
ACharbonneau opened this issue Nov 4, 2020 · 7 comments
Closed
Assignees

Comments

@ACharbonneau
Copy link
Contributor

The specifications-and-documentation repo is private.

For the continuous integration robot having it use cfde-bots ALLTHEACTIONS credential make it work, but it didn't work in the update workflows:

The action that is breaking is actions/checkout@v2. It only sort of can do private submodules. See: actions/checkout#287

My current attempt at a solution was from actions/checkout#116 (comment) but clearly didn't work.

In those issues, there is also a suggestion about using SSH keys. cfde-bot has an SSH key as a secret called RTDprivaterepo if you want to try that route.

@ACharbonneau
Copy link
Contributor Author

hmm. update cookbook stable is working. the other three are not. maybe i just have some kind of typo?

@ACharbonneau
Copy link
Contributor Author

It's just the specifications-and-documentation auth that's not working now.

Run git -c "http.extraheader=Authorization: basic ***" submodule update --init --recursive --remote docs/specifications-and-documentation
Submodule 'docs/specifications-and-documentation' (git@github.com:nih-cfde/specifications-and-documentation.git) registered for path 'docs/specifications-and-documentation'
Cloning into '/home/runner/work/published-documentation/published-documentation/docs/specifications-and-documentation'...
Warning: Permanently added the RSA host key for IP address '140.82.112.4' to the list of known hosts.
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nih-cfde/specifications-and-documentation.git' into submodule path '/home/runner/work/published-documentation/published-documentation/docs/specifications-and-documentation' failed
Failed to clone 'docs/specifications-and-documentation'. Retry scheduled
Cloning into '/home/runner/work/published-documentation/published-documentation/docs/specifications-and-documentation'...
git@github.com: Permission denied (publickey).
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.
fatal: clone of 'git@github.com:nih-cfde/specifications-and-documentation.git' into submodule path '/home/runner/work/published-documentation/published-documentation/docs/specifications-and-documentation' failed
Failed to clone 'docs/specifications-and-documentation' a second time, aborting
Error: Process completed with exit code 1.

I wonder if I can literally give it the same code as the CI.

@ACharbonneau
Copy link
Contributor Author

Good news: scoped CI code seems to work. Bad news: apparently the PR action is about to stop working https://github.com/nih-cfde/published-documentation/runs/1364822556?check_suite_focus=true

@ACharbonneau
Copy link
Contributor Author

Also, it thinks that the submodule hasn't updated but it has.

@ACharbonneau ACharbonneau changed the title The robot is still broken The change fetching robot is still broken for specs and docs Nov 10, 2020
@marisalim
Copy link
Contributor

this is the part that is going to be deprecated - https://github.blog/changelog/2020-10-01-github-actions-deprecating-set-env-and-add-path-commands/

@ACharbonneau
Copy link
Contributor Author

yeah I already fixed that

@ACharbonneau
Copy link
Contributor Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants