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 GitHub app credentials to openedx/devstack so that we can auto-add issues to projects #467

Closed
timmc-edx opened this issue Oct 5, 2023 · 3 comments
Assignees
Labels

Comments

@timmc-edx
Copy link
Member

Arch-BOM needs a way to get new openedx/devstack issues added to our GH project (https://github.com/orgs/edx/projects/11). We tried using the openedx add-to-project.yml reusable workflow, but it can't use the openedx org secrets to manipulate edx org projects. (Specifically, all we know is that the openedx org has org-wide secrets GRAPHQL_AUTH_APP_ID and GRAPHQL_AUTH_APP_PEM but the action failed with a permission error.)

It seems like we need some different GitHub app credentials. We'll need to add these to the openedx/devstack repo secrets under different names, and they'll need read/write access to edx projects. (2U will likely be able to reuse this GH app for a number of teams that want to keep track of issues on GitHub instead of on Jira.)

@timmc-edx timmc-edx added the esre label Oct 5, 2023
@rgraber rgraber moved this to Prioritized in Arch-BOM Oct 6, 2023
@jmbowman jmbowman moved this from Prioritized to In Progress in Arch-BOM Oct 16, 2023
@adzuci
Copy link

adzuci commented Nov 2, 2023

We looked at this in SRE Office Hours and see this action uses a graphql app key in the openedx org which then creates overly permissive tokens dynamically: https://github.com/openedx/.github/blame/master/.github/workflows/add-issue-to-a-project.yml#L34

We also looked at https://github.blog/changelog/2023-01-19-github-issues-january-19th-update/

image

@adzuci
Copy link

adzuci commented Nov 2, 2023

We did find that we can do this: https://github.com/orgs/edx/projects/11/workflows/13199169

image

@rgraber
Copy link
Contributor

rgraber commented Nov 2, 2023

Closing this as we have confirmed that new devstack issues make it onto the arch bom board.

@rgraber rgraber closed this as completed Nov 2, 2023
@github-project-automation github-project-automation bot moved this from In Progress to Done in Arch-BOM Nov 2, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

3 participants