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

JUnit Report for github CI #4116

Closed
wants to merge 5 commits into from
Closed

Conversation

mbien
Copy link
Member

@mbien mbien commented May 14, 2022

attempt to add the junit-report action to display junit results on failure.

lets see if this works

@mbien mbien added the CI continuous integration changes label May 14, 2022
@mbien
Copy link
Member Author

mbien commented May 14, 2022

can't upload the results, gonna need a gh token for creating "checks" i suppose

🚀 Publish results
  ℹ️ Creating check
  Error: ❌ Failed to create checks using the provided token. (HttpError: Resource not accessible by integration)
  Warning: ⚠️ This usually indicates insufficient permissions. More details: https://github.com/mikepenz/action-junit-report/issues/23

looking at the "Set up Job" section of the github log it lists:

GITHUB_TOKEN Permissions
  Checks: read
  Contents: read
  Metadata: read

i believe the "permissions" section in the yaml can only remove permissions, it can't add any. It might still work with tokens if we can setup one somehow https://docs.github.com/en/actions/security-guides/automatic-token-authentication#granting-additional-permissions

@mbien mbien mentioned this pull request May 20, 2022
@mbien
Copy link
Member Author

mbien commented Jun 1, 2022

@neilcsmith-net do you know if it is possible to configure the permission token (GITHUB_TOKEN) of this repository? I believe all what is needed here is to switch "Checks" from read to write. Not sure if we can modify the project settings.

@ebarboni
Copy link
Contributor

ebarboni commented Jun 1, 2022

@mbien you should ask infra for this action maybe

@mbien
Copy link
Member Author

mbien commented Jun 1, 2022

@ebarboni yeah I probably will. If i take a look at the apache actions doc, it mentions tokens and also personal access tokens several times. So I thought there must be a way to configure those for the repo.

Its no problem for regular github projects, since you can simply open the settings. I don't know how it works for centrally managed apache projects since the doc doesn't mention that :)

@mbien
Copy link
Member Author

mbien commented Jun 17, 2022

asked apache infra:
https://issues.apache.org/jira/browse/INFRA-23381

@mbien
Copy link
Member Author

mbien commented Jul 4, 2022

closing in favor of #4328

@mbien mbien closed this Jul 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI continuous integration changes work-in-progress
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants