From 462a7dd0685600260aa5eac0cd6712fef6c1073e Mon Sep 17 00:00:00 2001 From: MatanGevaPort Date: Thu, 16 May 2024 17:09:58 +0300 Subject: [PATCH] Got api url from github context --- .github/workflows/sync-github-issues.yaml | 1 + config.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/sync-github-issues.yaml b/.github/workflows/sync-github-issues.yaml index ce41f8b..ffce823 100644 --- a/.github/workflows/sync-github-issues.yaml +++ b/.github/workflows/sync-github-issues.yaml @@ -17,6 +17,7 @@ jobs: blueprint: app scorecard: productionReadiness filter_rule: '{"property": "$team","operator": "containsAny","value": ["AAA"]}' + github_api_url: ${{ github.api_url }} # https://docs.github.com/en/actions/learn-github-actions/variables#using-contexts-to-access-variable-values github_token: ${{ github.token }} # https://docs.github.com/en/actions/learn-github-actions/variables#using-contexts-to-access-variable-values github_repository: ${{ github.repository }} # Example: octocat/Hello-World, https://docs.github.com/en/actions/learn-github-actions/variables#using-contexts-to-access-variable-values target_kind: github \ No newline at end of file diff --git a/config.py b/config.py index 888dc5f..711f84e 100644 --- a/config.py +++ b/config.py @@ -27,7 +27,7 @@ class FilterRule(BaseModel): class Settings(BaseSettings): port_client_id: str port_client_secret: str - github_api_url: str = "https://api.github.com" + github_api_url: str = "" github_token: str = "" github_repository: str = "" slack_webhook_url: str = ""