Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update the App Id and Private Key for ephemeral app tokens #458

Merged
merged 1 commit into from
Dec 9, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading