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

Add integration for GitHub environment secrets #1194

Closed
wants to merge 21 commits into from

Conversation

Shraeyas
Copy link
Contributor

Description πŸ“£

Resolves #1154

Type ✨

  • Bug fix
  • New feature
  • Breaking change
  • Documentation

@Shraeyas Shraeyas marked this pull request as ready for review November 26, 2023 13:52
@vmatsiiako
Copy link
Collaborator

Hi @Shraeyas! Thank you for contributing. I think it's a little confusing that there are now two GitHub tiles on the integrations page. I think it might be better if there is just one tile and users are able to choose whether they want to sync it to repository or environment secrets. What do you think?

.env.example Outdated
CLIENT_ID_GITLAB=
CLIENT_ID_BITBUCKET=
CLIENT_SECRET_HEROKU=
CLIENT_SECRET_VERCEL=
CLIENT_SECRET_NETLIFY=
CLIENT_SECRET_GITHUB=
CLIENT_SECRET_GITHUB_ENVIRONMENT=
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does there have to be a separate environment variable? I think we might be able to reuse the current github one

Copy link
Contributor Author

@Shraeyas Shraeyas Dec 1, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My initial thought was we can assign different permissions for the oauth keys for both the integrations, but since anyways we will be merging both GitHub and GitHub environments, we can simply reuse the GitHub client id and secrets.

Also, since we had separate integrations, the redirect URI mentioned for the tokens will have to be different.

@Shraeyas
Copy link
Contributor Author

Shraeyas commented Dec 1, 2023

Hi @Shraeyas! Thank you for contributing. I think it's a little confusing that there are now two GitHub tiles on the integrations page. I think it might be better if there is just one tile and users are able to choose whether they want to sync it to repository or environment secrets. What do you think?

@vmatsiiako Makes sense. We can merge both into one and give users an option to choose from both.

How exactly would you like the UI to look? Should there be a drop-down to choose from the two or should there be a different tab within the tile?

@vmatsiiako
Copy link
Collaborator

@Shraeyas yeah, it might be better to have a different tab, or just have it as an advanced setting where you have to choose one or the other

@vmatsiiako
Copy link
Collaborator

I started testing it, and for some reason it doesn't work for me. Even though I have environments in my github repository, they are not pulled up into the Dropdown in Infisical. Do you know why this could happen?

@Shraeyas
Copy link
Contributor Author

Shraeyas commented Dec 9, 2023

@vmatsiiako It is working fine for me. Just to be sure, I even set up the project from scratch on this branch and it is still working.

If there is any other information/logs that you can share, that would be helpful.

Screenshot from 2023-12-09 12-04-58
Screenshot from 2023-12-09 12-05-04
Screenshot from 2023-12-09 12-06-25
Screenshot from 2023-12-09 12-08-12

@maidul98
Copy link
Collaborator

This PR is now stale. The backend structure has changed completely due to Postgres migration

@maidul98 maidul98 closed this Feb 16, 2024
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

Successfully merging this pull request may close these issues.

[ENG-225] Integration with environment secrets in GitHub
4 participants