Skip to content

Commit

Permalink
Merge pull request #458 from balena-os/kyle/balenaos-ci-app-secrets
Browse files Browse the repository at this point in the history
Update the App Id and Private Key for ephemeral app tokens
  • Loading branch information
flowzone-app[bot] authored Dec 9, 2024
2 parents 86272d8 + 583241b commit 1676c58
Showing 1 changed file with 10 additions and 14 deletions.
24 changes: 10 additions & 14 deletions .github/workflows/yocto-build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ on:
SIGN_API_KEY:
description: balena API key that provides access to the signing server
required: false
GH_APP_PRIVATE_KEY:
description: "GPG Private Key for GitHub App to generate ephemeral tokens (used with vars.FLOWZONE_APP_ID)"
BALENAOS_CI_APP_PRIVATE_KEY:
description: "GPG Private Key for GitHub App to generate ephemeral tokens (used with vars.BALENAOS_CI_APP_ID)"
required: false
PBDKF2_PASSPHRASE:
description: "Passphrase used to encrypt/decrypt balenaOS assets at rest in GitHub."
Expand Down Expand Up @@ -251,10 +251,9 @@ jobs:
- name: Create GitHub App installation token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token
if: vars.FLOWZONE_APP_ID != ''
with:
app-id: ${{ vars.FLOWZONE_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
app-id: ${{ vars.BALENAOS_CI_APP_ID }}
private-key: ${{ secrets.BALENAOS_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

# Generate another app token for the balena-io organization
Expand All @@ -263,10 +262,9 @@ jobs:
- name: Create GitHub App installation token (balena-io)
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token-balena-io
if: vars.FLOWZONE_APP_ID != ''
with:
app-id: ${{ vars.FLOWZONE_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
app-id: ${{ vars.BALENAOS_CI_APP_ID }}
private-key: ${{ secrets.BALENAOS_CI_APP_PRIVATE_KEY }}
owner: balena-io

# https://github.com/actions/checkout
Expand Down Expand Up @@ -1100,10 +1098,9 @@ jobs:
- name: Create GitHub App installation token
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token
if: vars.FLOWZONE_APP_ID != ''
with:
app-id: ${{ vars.FLOWZONE_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
app-id: ${{ vars.BALENAOS_CI_APP_ID }}
private-key: ${{ secrets.BALENAOS_CI_APP_PRIVATE_KEY }}
owner: ${{ github.repository_owner }}

# Generate another app token for the balena-io organization
Expand All @@ -1112,10 +1109,9 @@ jobs:
- name: Create GitHub App installation token (balena-io)
uses: actions/create-github-app-token@5d869da34e18e7287c1daad50e0b8ea0f506ce69 # v1.11.0
id: app-token-balena-io
if: vars.FLOWZONE_APP_ID != ''
with:
app-id: ${{ vars.FLOWZONE_APP_ID }}
private-key: ${{ secrets.GH_APP_PRIVATE_KEY }}
app-id: ${{ vars.BALENAOS_CI_APP_ID }}
private-key: ${{ secrets.BALENAOS_CI_APP_PRIVATE_KEY }}
owner: balena-io

# Clone the device respository to fetch Leviathan
Expand Down

0 comments on commit 1676c58

Please sign in to comment.