gitstream
gitstream copied to clipboard
gitStream not working in one of repository in our organization, but it works in my personal repository.
Describe the bug First, I have tried GITStream with few automation actions in my personal GitHub repository, it worked fine. But same not working in one of repository of our organization. I have installed GITStream in a repository and added gitstream.cm and gitstream.yml file properly, still I cannot see any action running. Tried with different automations, nothing works. Do I need to focus on any organization/repository settings? A clear and concise description of what the bug is.
To Reproduce
Steps to reproduce the behavior:
- The
.cmautomation file - The PR URL (as it contains the repo and PR identifiers)
- Describe your PR relevant content
- Add relevant commit SHA
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.
@Sekhar9581 Thank you for giving gitStream a try!
Check the following:
Go to https://github.com/apps/gitstream-cm/installations/new and check that under Repository access you selected either All or the repositories you want gitStream to work in.
Check you see the following directory strcuture in your repo:
.
├─ .cm/
│ └─ gitstream.cm
├─ .github/
│ └─ workflows/
│ └─ gitstream.yml
If these steps doesn't help, please check the Action tab, and see if it includes gitStream runs.
Let me know if it worked
Thanks for responding. Verified that I have selected only one repository for access and I can see gitStream under Settings>Github Apps and gitstream.cm and gitstream.yml are placed in proper directory. I cannot see any workflows in Actions tab.
Does both files merged to the default branch?
.
├─ .cm/
│ └─ gitstream.cm
├─ .github/
│ └─ workflows/
│ └─ gitstream.yml
Yes. I have main(default) and test branches, both are having the cm and yml files. Im making changes in test branch and trying to merge into main through pull request. I cannot see gitstream running as shown in below snap
It seems that gitStream service isn't triggered by GitHub on your pull request, therefore it doesn't run the GitHub action at all. Can you share the org name you installed gitStream for (it's the 2nd element in the PR URL, right after https://github.com)? It will help to make sure that it was installed properly
Sure, here it is 'https://github.com/Ocwen-Financial/gitstream'
@Sekhar9581 we see an issue with gitStream access to your org. Please add gitStream app to your authorized IPs, see GitHub instruction: https://docs.github.com/en/enterprise-cloud@latest/organizations/keeping-your-organization-secure/managing-security-settings-for-your-organization/managing-allowed-ip-addresses-for-your-organization#allowing-access-by-github-apps
Hi @vim-zz took some time to get back to you. Before enabling IP allow list for installed GitHub Apps, I have some queries. Can you please help me to understand below?
- How do I check the IP address of gitstream before enabling IP allow list?
- We are in a restricted environment and only allowed internal IPs for access. Is it safe to allow gitstream IP in our environment?
- Will gitstream expose my code to the outside world? If yes, what level of code will be exposed externally?
Hi @Sekhar9581
- Since gitStream is a GitHub app, you can automatically add to your allow list the IP addresses configured for GitHub apps that you install in your organization learn more here
- In this configuration, you allow to use gitStream app IP only to react on events that originated from GitHub while not allowing any other traffic from the IP of gitStream app
- gitStream doesn’t extract your source code. Like any other CI/CD automation, the source code is being scanned in the repo using your CI runners and is not shared with any external services
I hope it clarify things, let me know if you have more questions
Hi @vim-zz
Thanks for clarifying our queries. We have enabled IP allow list for installed GitHub Apps in our Organization. After enable IP allow list, I created new pull request. gitStream ran in the background while I was creating the pull request, but after sometime it showed as checks skipped. I have attached the screenshot. Please let me know if I missed anything.
Thanks.
Hi @Sekhar9581 thanks for your patience with us.
Are you still having this issue? If so, do you see any errors in your GitHub Actions log for this?