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

Cannot access the internet for github action workflow #2996

Closed
Khalian opened this issue Mar 21, 2021 · 6 comments
Closed

Cannot access the internet for github action workflow #2996

Khalian opened this issue Mar 21, 2021 · 6 comments
Assignees
Labels
question Further information is requested

Comments

@Khalian
Copy link

Khalian commented Mar 21, 2021

Description
I cannot access the internet for github actions workflow

Question, Bug, or Feature?:
Bug

https://github.com/Khalian/Modulo12/pull/14/checks?check_run_id=2160911242

@LeonidLapshin
Copy link
Contributor

Hey, @Khalian!
I see 403 http error in your build, it seems that the URL is incorrect or it need authorization, but the connection is ok.
Could you please check it?

@LeonidLapshin LeonidLapshin self-assigned this Mar 22, 2021
@LeonidLapshin LeonidLapshin added question Further information is requested and removed needs triage labels Mar 22, 2021
@Khalian
Copy link
Author

Khalian commented Mar 24, 2021

The URL is correct. The way my code works is, i need to fetch a DTD of an xml type (called music xml) in order to parse the music xml file into an internal format i prefer.

I know for a fact its correct, since I run the same exact code in travis CI and it succeeds there, and I was considering migrating to github actions, but it seems there are technical limitations to your project to allow outbound connectivity to URLs from your build server.

@Khalian
Copy link
Author

Khalian commented Mar 24, 2021

For instance here is a successful build in travis CI: https://travis-ci.com/github/Khalian/Modulo12/builds/220743765

And here is the PR i tried with both in tandem Khalian/Modulo12#14 and as you can see, the github actions one fails and the travis one succeeds.

@maxim-lobanov
Copy link
Contributor

Hello @Khalian , Looks like your Travis build uses Java 14. Why do you use Java 8 in GitHub Actions build pipeline? (https://github.com/Khalian/Modulo12/pull/14/files#diff-d65baf3ad59488720aa50001fc7eb86b8f6ec0ca91534edb708dfe39e22aece0R19)

After switching Java to 14, build passes successfully.
See build results in my fork: https://github.com/maxim-lobanov/Modulo12/runs/2181818758?check_suite_focus=true
Corrected YAML: https://github.com/maxim-lobanov/Modulo12/actions/runs/682094650/workflow

@maxim-lobanov maxim-lobanov self-assigned this Mar 24, 2021
@Khalian Khalian closed this as completed Mar 25, 2021
@Khalian Khalian reopened this Mar 25, 2021
@Khalian
Copy link
Author

Khalian commented Mar 25, 2021

Yep sorry about that. I just copied the default scala template and forgot about JDK version.

@Khalian Khalian closed this as completed Mar 25, 2021
@akkim31
Copy link

akkim31 commented Mar 25, 2021

#2951

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

No branches or pull requests

4 participants