-
-
Notifications
You must be signed in to change notification settings - Fork 8
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
Does not recognize GitHub Enterprise internal actions #52
Comments
@holomekc thank you for your kind words. And also thank you for reporting this behavior. 🙃 I am currently refactoring a lot and the GitHub integration is my next step. Just as an idea... Since I have no enterprise account to test with, maybe you can tell me the different call I need to make and how to tell if its enterprise action. |
Hi @YunaBraska, Thx for the quick answer. I am afraid you cannot really see it. The pattern is always: {owner}/{repo}@{ref} So there is no difference. In my initial question I wrote nonsense... so it might look like this: So there is no indicator. I guess what you could do, is to check if an Enterprise GitHub account is registered in the Settings of IntelliJ and then try to resolve the action first via GitHub Enterprise and then GitHub. This is really a little bit annoying and probably not efficient, but I see no other way. I checked the logs during job setup and I can see something like this: https://api.github.com/repos/Azure/setup-kubectl/tarball/{hash} Or https://{ghe-host}/api/v3/repos/actions/checkout/tarball/{hash} As you can see we have the second action "cashed" in our org. The logs do not say which approach it uses to decide which server to contact though. |
Hi @holomekc I am reading many GitHub documentations, but missing the big picture somehow.
|
Hi @YunaBraska , that is all info you have actually. At least from the workflow file. Br, |
Hello @holomekc Is there an error log when trying to fetch your organization internal actions ? |
No error. I just see in the logs that the plugin tries to contact github.com. As far as I could see it the plugin has the github.com urls hardcoded. |
The Plugin has hardcoded GitHub.com URLs. @holomekc is using cache/self-hosted actions as far as I understand. |
Hi @YunaBraska, I did some tests. I checked out your code and changed the hardcoded section first with the urls of our enterprise server. After some adjustments it worked fine. There are some things I noticed:
I noticed that you handle the download in the FileDownloader class. As it seems you already stream the configured GitHub accounts. I think here you could do some tricks to figure out that there is an enterprise server:
Maybe as an idea, you could think about moving the decision of using the github.com url also to the FileDownloader, when you have the accounts available. Then you can decide, which host to use. You need to recognize, when the raw endpoint should be used though. Sadly for GitHub.com the raw url is different to the host, so this would require some special handling. Additionally, it is a little bit annoying, that you would need to do 2 requests per server due to the yml, yaml topic, but I noticed, that you check for yaml as well in other cases, so I think this should be included as well. Does this help already, or do you need further information? Br, |
Hi Chris, thanks for your awesome research. And yes, that probably helps me a lot!
Project Status:
|
Hi @YunaBraska, Regarding recruiting. Normally my answer would be yes, but I am working too much already. I should do more for myself, I just work from morning till evening. But this is a different story. What I can do for sure is to help test some stuff. Or do some adjustments. I am not sure. The topic regarding Jetbrains and GitHub action support is questionable. I dont want to stress you with a topic, which is then solved by Jetbrains. I saw, that you wrote at the EAP page. I could not find any details regarding this feature yet. I searched here. Br, |
JB has a ticket here: https://youtrack.jetbrains.com/issue/IDEA-345340/Improve-Github-Actions-development-UX-in-IDE |
Due to significant changes introduced by JetBrains, my plugin now faces numerous disruptions. After dedicating substantial effort to this project last year, I find myself needing assistance to move forward. If you're interested in contributing or know someone who might be, please feel free to get involved. I am available to provide guidance through the intricacies of the plugin. |
First of all thank you so much for the awesome work!!!
What happened?
When using in GitHub enterprise the actions from our organization are not recognized, although GitHub Enterprise is successfully integrated into IntelliJ (Create new projects via VC works fine). When I checked the logs I could see that github itself was contacted, but not the Enterprise server. So it seems that this is currently not supported :(. As far as I am aware the structure of defining the usage of an action is still: {org}/{repo}/{action}@{ref} . Even if it is an enterprise action. There seems to be no prefix to indicate that it is an internal action.
How can we reproduce the issue?
Steps to reproduce the behavior:
This is difficult to describe. The GitHub config in IntelliJ uses an Enterprise integration and token and you need an action, which is specified in the workflow just by GitHub Enterprise org and repo.
Relevant log output
com.github.yunabraska.githubworkflow.helper.GitHubWorkflowHelper - Download [https://raw.githubusercontent.com// ...
But as said the action does not exist in GitHub itself.
Operating System
OSX
Plugin Version
3.2.1
IDE Name and Version
IntelliJ IDEA 2023.3.2 (Ultimate Edition)
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: