Skip to content

Commit

Permalink
Fixed secret for reporting to kosli-public
Browse files Browse the repository at this point in the history
  • Loading branch information
ToreMerkely committed Sep 25, 2024
1 parent bf5cf12 commit 458e687
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ jobs:
FLOW_TEMPLATE_FILE: ${{ needs.pre-build.outputs.trail_template_file }}
KOSLI_ORG: kosli-public
secrets:
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
pr_github_token: ${{ secrets.GITHUB_TOKEN }}


Expand All @@ -73,7 +73,7 @@ jobs:
slack_webhook: ${{ secrets.MERKELY_SLACK_CI_FAILURES_WEBHOOK }}
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}

docker:
needs: [pre-build, test, init-kosli]
Expand All @@ -89,5 +89,5 @@ jobs:
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }}
ghcr_user: ${{ secrets.GHCR_USER }}
ghcr_token: ${{ secrets.GHCR_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
10 changes: 5 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ jobs:
FLOW_TEMPLATE_FILE: ${{ needs.pre-build.outputs.trail_template_file }}
KOSLI_ORG: kosli-public
secrets:
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
pr_github_token: ${{ secrets.GITHUB_TOKEN }}

never-alone-trail:
Expand All @@ -59,7 +59,7 @@ jobs:
PARENT_TRAIL_NAME: ${{ needs.pre-build.outputs.trail_name }}
KOSLI_ORG: kosli-public
secrets:
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
pr_github_token: ${{ secrets.GITHUB_TOKEN }}

test:
Expand All @@ -82,7 +82,7 @@ jobs:
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }}
jira_api_token: ${{ secrets.KOSLI_JIRA_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}

docker:
needs: [pre-build, init-kosli, test, never-alone-trail]
Expand All @@ -98,7 +98,7 @@ jobs:
slack_channel: ${{ secrets.MERKELY_SLACK_CI_FAILURES_CHANNEL }}
ghcr_user: ${{ secrets.GHCR_USER }}
ghcr_token: ${{ secrets.GHCR_TOKEN }}
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}
snyk_token: ${{ secrets.SNYK_TOKEN }}

goreleaser:
Expand Down Expand Up @@ -168,7 +168,7 @@ jobs:
trail_name: ${{ needs.pre-build.outputs.trail_name }}
kosli_org: kosli-public
secrets:
kosli_api_token: ${{ secrets.KOSLI_API_TOKEN_PROD }}
kosli_api_token: ${{ secrets.KOSLI_PUBLIC_API_TOKEN }}

homebrew-pr:
needs: [goreleaser, pre-build]
Expand Down
15 changes: 15 additions & 0 deletions secrets/gh-repo-kosli-public-api-token.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
secret-name: KOSLI_PUBLIC_API_TOKEN
secret-expire: 2025-09-25
secret-updated: 2024-09-25
secret-updated-by: tore
secret-type: gh-repo
is-secret: true
secret-usage: Secret used to report CLI builds to
https://app.kosli.com/kosli-public

update-instructions:
Get new API key from https://app.kosli.com/kosli-public/settings/service-accounts#ci-user
This is the api-key for the ci-user.

Go to https://github.com/kosli-dev/cli/settings/secrets/actions
under <Repository secrets>

0 comments on commit 458e687

Please sign in to comment.