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

ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN #315

Merged
merged 3 commits into from
Mar 14, 2023

Conversation

shmpwk
Copy link
Collaborator

@shmpwk shmpwk commented Mar 13, 2023

Description

We mostly cannot dispatch workflow with GITHUB_TOKEN.
Instead, we often use Github Apps for organization authorization.
This PR is a substitue for #314

Pre-review checklist for the PR author

The PR author must check the checkboxes below when creating the PR.

In-review checklist for the PR reviewers

The PR reviewers must check the checkboxes below before approval.

Post-review checklist for the PR author

The PR author must check the checkboxes below before merging.

  • There are no open discussions or they are tracked via tickets.

After all checkboxes are checked, anyone who has write access can merge the PR.

@github-actions github-actions bot added the ci label Mar 13, 2023
@shmpwk shmpwk marked this pull request as ready for review March 13, 2023 01:05
@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 13, 2023

@kenji-miyake
Could you check the authorization scope of Github Apps if it can trigger the other repository(= https://github.com/tier4/update-release-notes)?
Currently, the dispatch is failed because of 404 https://github.com/tier4/autoware.universe/actions/runs/4400367753/jobs/7705601385

@kenji-miyake
Copy link

@shmpwk I've asked the org admin to add you to the App admin.

@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 13, 2023

@kenji-miyake
Thank you, I succeeded to add read and write access for Actions and Contents.
https://github.com/organizations/tier4/settings/apps/tier4-autoware-public-bot/permissions
However the dispatch is still failed.
Do you have an insight for this?

@kenji-miyake
Copy link

@shmpwk Mm, I'm sorry I have no idea. 😢

@kenji-miyake
Copy link

@shmpwk I think your request weren't approved yet. Could you try it again?

@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 14, 2023

@kenji-miyake
Thank you for your approval, but still it is failed.
I continue to investigate the cause of the 404.

@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 14, 2023

@kenji-miyake
I confirmed that dispatch succeeded !

The cause of the problem is that I haven't completed to install Github Apps at dipatched workflow.

Thank you for your help!

@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 14, 2023

Thank you for modifying spell

@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 14, 2023

I mistakenly merged the tier4/main branch and asked many people to review.
Now I reset the commits but sorry for bothering you.

Signed-off-by: Shumpei Wakabayashi <[email protected]>
@shmpwk
Copy link
Collaborator Author

shmpwk commented Mar 14, 2023

I've messed up commanding the git operations, but it looks like everything is ready to go now.

@shmpwk shmpwk merged commit 057d0da into tier4:tier4/main Mar 14, 2023
@shmpwk shmpwk deleted the ci/github-apps-dispatch branch March 14, 2023 08:58
mkuri pushed a commit that referenced this pull request Mar 15, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
tkimura4 pushed a commit that referenced this pull request Mar 15, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
tkimura4 pushed a commit that referenced this pull request Mar 15, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Mar 17, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Mar 17, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Mar 17, 2023
* ci: dispatch release note repository (#313)

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN (#315)

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Apr 14, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Apr 14, 2023
* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Apr 14, 2023
* ci: dispatch release note repository (#313)

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN (#315)

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
shmpwk added a commit that referenced this pull request Apr 14, 2023
* ci: dispatch release note repository (#313)

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN (#315)

* ci(dispatch-release-note): use Github Apps instead of GIHUB_TOKEN

Signed-off-by: Shumpei Wakabayashi <[email protected]>

* fix typo

* chore: remove white space

Signed-off-by: Shumpei Wakabayashi <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>

---------

Signed-off-by: Shumpei Wakabayashi <[email protected]>
Co-authored-by: Kenji Miyake <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants