-
Notifications
You must be signed in to change notification settings - Fork 8
feat: add ability to use OIDC to report coverage #34
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
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,6 +18,10 @@ inputs: | |
| description: 'HEAD commit for which the Test Coverage report is being sent' | ||
| required: false | ||
| default: ${{ github.event.pull_request.head.sha }} | ||
| use-oidc: | ||
| description: 'Use OIDC token instead of DSN. Allowed values are — true, false' | ||
|
||
| required: false | ||
| default: 'false' | ||
| branding: | ||
| color: 'green' | ||
| icon: 'umbrella' | ||
|
|
||
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
|
|
@@ -11,6 +11,7 @@ | |||||
| "dsn": "INPUT_DSN", | ||||||
| "fail_ci_on_error": "INPUT_FAIL-CI-ON-ERROR", | ||||||
| "commit_sha": "INPUT_COMMIT-SHA", | ||||||
| "use_oidc": "INPUT_USE-OIDC", | ||||||
| } | ||||||
|
|
||||||
| DEEPSOURCE_CLI_PATH = "/app/bin/deepsource" | ||||||
|
|
@@ -54,6 +55,9 @@ def main() -> None: | |||||
| input_data["coverage_file"], | ||||||
| ] | ||||||
|
|
||||||
| if input_data["use_oidc"] == "true": | ||||||
|
||||||
| if input_data["use_oidc"] == "true": | |
| if input_data["use_oidc"]: |
Uh oh!
There was an error while loading. Please reload this page.