Skip to content

Commit

Permalink
Pass GITHUB_TOKEN to workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Aug 21, 2024
1 parent fb0ea3b commit ad89991
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 1 deletion.
2 changes: 2 additions & 0 deletions .github/workflows/buildPlan-A.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,8 @@ on:
required: true
DOCKERHUB_TOKEN:
required: true
GITHUB_TOKEN:
required: true

jobs:
setup-build:
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/buildPlan-B.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,8 @@ on:
required: true
DOCKERHUB_TOKEN:
required: true

GITHUB_TOKEN:
required: true
jobs:
setup-build:
runs-on: ubuntu-22.04
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/buildSingle.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -68,5 +68,7 @@ jobs:
maven-repo-url: ${{ needs.setup-build.outputs.maven-repo-url }}
elastic-user: ${{ secrets.OPENCB_ELASTIC_USER }}
elastic-password: ${{ secrets.OPENCB_ELASTIC_PSWD }}
dockerhub-username: ${{github.actor}}
dockerhub-token: ${{secrets.GITHUB_TOKEN}}
github-key: ${{ secrets.OPENCB_GITHUB_KEY }}
workflow-name: "build-project"
2 changes: 2 additions & 0 deletions coordinator/src/main/scala/buildPlan.scala
Original file line number Diff line number Diff line change
Expand Up @@ -488,6 +488,8 @@ def createGithubActionJob(
| required: true
| DOCKERHUB_TOKEN:
| required: true
| GITHUB_TOKEN:
| required: true
|
|jobs:
| $setupId:
Expand Down

0 comments on commit ad89991

Please sign in to comment.