Skip to content

Commit

Permalink
fix: make secret env vars configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
erincgucer committed Sep 6, 2024
1 parent 0d63d9c commit 8ee0e02
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .github/workflows/build-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
with:
secret-ids: |
GITHUB_CODE_UPGRADE_ENGINE_APP_KEY
## <<Stencil::Block(getMoreCiSecrets)>>

## <</Stencil::Block>>
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
Expand Down Expand Up @@ -69,6 +72,9 @@ jobs:
run: mise run runtest
env:
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
## <<Stencil::Block(runTestEnvVars)>>

## <</Stencil::Block>>
## <<Stencil::Block(buildteststeps)>>

## <</Stencil::Block>>
Expand Down
6 changes: 6 additions & 0 deletions templates/.github/workflows/build-release.yml.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,9 @@ jobs:
with:
secret-ids: |
GITHUB_CODE_UPGRADE_ENGINE_APP_KEY
## <<Stencil::Block(getMoreCiSecrets)>>

## <</Stencil::Block>>
- name: Generate a token
id: generate_token
uses: actions/create-github-app-token@v1
Expand Down Expand Up @@ -69,6 +72,9 @@ jobs:
run: mise run runtest
env:
GITHUB_TOKEN: {{ "${{ steps.generate_token.outputs.token }}" }}
## <<Stencil::Block(runTestEnvVars)>>
{{ file.Block "runTestEnvVars" }}
## <</Stencil::Block>>
## <<Stencil::Block(buildteststeps)>>
{{ file.Block "arguments" }}
## <</Stencil::Block>>
Expand Down

0 comments on commit 8ee0e02

Please sign in to comment.