Skip to content

Commit

Permalink
Got api url from github context
Browse files Browse the repository at this point in the history
  • Loading branch information
matan84 committed May 16, 2024
1 parent 8a3b202 commit 462a7dd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/sync-github-issues.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = ""
Expand Down

0 comments on commit 462a7dd

Please sign in to comment.