IBM / scc-go-sdk

GoLang SDK for IBM Cloud Security and Compliance Center
https://cloud.ibm.com/docs/security-compliance
Apache License 2.0
2 stars 9 forks source link

Pipeline failing on "publishing code coverage report to codeclimate" #71

Closed tyao117 closed 2 years ago

tyao117 commented 2 years ago

Describe the bug Code Pipeline to verify the changes of the code is broken due to:

Error: you must supply a CC_TEST_REPORTER_ID ENV variable or pass it via the -r flag

LINK: https://github.com/IBM/scc-go-sdk/runs/4781084363?check_suite_focus=true#step:4:35 ~PR request: https://github.com/IBM/scc-go-sdk/pull/70~

To Reproduce

Expected behavior Not having CC_TEST_REPORTER_ID as a error

Screenshots If applicable, add screenshots to help explain your problem.

Must gather (please complete the following information):

Additional context Add any other context about the problem here.
Were you able to avoid the problem by changing your application code slightly?

gary1998 commented 2 years ago

@tyao117 This is not an issue, this is expected behaviour. Github Actions does not expose repo secrets to any forked repo. So, whenever pipeline runs for any commit inside the forked repo or any PR from forked repo to main repo, secrets are always missing…. Correct process is:

gary1998 commented 2 years ago

Also, can you check the Verify stage of pipeline too as it is failing and it doesn't require any repo secret.

tyao117 commented 2 years ago

@gary1998 Couldn't push the branch onto the repo:

(.direnv)➜  scc-go-sdk git:(notify_update) ✗ git push --set-upstream origin notify_update
remote: Permission to IBM/scc-go-sdk.git denied to tyao117.
fatal: unable to access 'https://github.com/IBM/scc-go-sdk.git/': The requested URL returned error: 403

image

tyao117 commented 2 years ago

After @gary1998 gave me permission to write to the repo, I was able to write to the repo. Closing the issue.