-
Notifications
You must be signed in to change notification settings - Fork 12
Add note about GitHub Actions app_id
#64
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
Conversation
Most repositories use at least the "GitHub Actions" GitHub App. The `app_id` of "GitHub Actions" is `15368` and that value seems to work in `logging-log4j2`. Since from a user perspective, it's hard to find out the identifier of a GitHub App, it would be probably useful to list all the ids of applications installed at the `apache` organization level.
|
imho, you should only specify the app slug, the app id should be retrieved via the API. |
|
Where can I specify the app slug? On my personal repo the REST API for branch protection returns something like this: {
"required_status_checks": {
"contexts": [
"build",
"build / build (ubuntu-latest)",
"codecov/project",
"CodeQL"
],
"checks": [
{
"context": "build",
"app_id": 15368
},
{
"context": "build / build (ubuntu-latest)",
"app_id": 15368
},
{
"context": "codecov/project",
"app_id": 254
},
{
"context": "CodeQL",
"app_id": 57789
}
]
}
}My guess is that these are the values I would need to add to |
|
so the default app_id is set to |
|
so when using status checks from workflows, I would leave the app_id set to its default which is -1 imho |
|
also you current The used status check is wrong imho, I can test with a fork to get it right. |
I removed branch protection from |
|
ah ok let me test on the fork anyways to see if the settings are correct |
|
so the status check for build is ok, however, I would really remove the app_id, also when you add a status check via the Web UI, you actually do not have a choice to select the app, and any is used as default for status checks coming from workflows. btw. you codeql workflow build the project but does not skip tests as specified here: so that setting seems to be wrong. |
|
the check for CodeQL works but is kind of weird, I would use the check on the workflow that runs codeql itself, but thats up to you. |
|
Superseded by #67 |
Most repositories use at least the "GitHub Actions" GitHub App.
The
app_idof "GitHub Actions" is15368and that value seems to work inlogging-log4j2. Since from a user perspective, it's hard to find out the identifier of a GitHub App, it would be probably useful to list all the ids of applications installed at theapacheorganization level.