-
Notifications
You must be signed in to change notification settings - Fork 201
Fix CI error #199
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
Fix CI error #199
Conversation
@rootfs , I need your help on ad-m/github-push-action#96 I suppose so far we fixed in CI at PR action. as I suppose in this action, we don't need github action create commit and update in specific branch for test coverage. the test coverage should be refreshed by a commit once after code been merged. but, the permission issue still there, I am not sure if we should use a specific configured github token? |
if those permission doesn't works for our project. @rootfs , I suppose we may need to consider a personal access token (PAT) |
Signed-off-by: Sam Yuan <[email protected]>
otherwise, I suppose we may need a https://docs.github.com/en/actions/security-guides/automatic-token-authentication#granting-additional-permissions @rootfs, please help investigate. |
or I find another sample as https://github.com/step-security/secure-workflows/blob/main/.github/workflows/test.yml#L43 @rootfs , do you mind we use codecov ? or otherwise, we have to ... suffered from github token permissions. |
this is the new error
|
codecov looks promising: Can you try it on? |
yea... it blocks by default branch protection rule? |
https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/managing-a-branch-protection-rule @rootfs could you please try to find a way to skip approve validation for github action?
|
@SamYuan1990 We need an actor from our organization for that, github-action is not an actor. |
I suppose some thing we can do:
for moving next, the wired thing is, if we take action for item 1, then we lost chance for option 2 to debug and lost test chance for option 3... |
but, wait a min... if github action is not an actor, where the token??? |
yes, something worth keeping learning 👯 |
https://github.com/actions-user |
cool, do you want to give it a try? |
no, as already there. https://github.com/sustainable-computing-io/kepler/blob/main/.github/workflows/unit_test.yml#L32 and https://github.com/vpofe/go-http-client/blob/main/.github/workflows/go.yml#L62-L75 that's the reason I am worried about.... I hope you can help check with user and github action's support. |
questioned to github action at https://github.com/orgs/community/discussions/33423 |
resolve #193
change log:
add commit push condition for main branch.
move test coverage for default unit test.(to avoid test coverage based on specific build tag as bcc)
bug fix for test coverage file missing.
Signed-off-by: Sam Yuan [email protected]