Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 5 additions & 3 deletions .github/workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -71,10 +71,12 @@ Add this to a workflow in the genlayer-node repository:

Access to the private `genlayerlabs/genlayer-node` repository is provided by a GitHub App installed on that repository. The workflow mints a short-lived installation token via `actions/create-github-app-token@v3`.

Required configuration:
Credentials live in the **`Node Sync`** GitHub Environment (Settings → Environments → Node Sync). Any job that needs the App token must declare `environment: Node Sync` at the job level — without it, `secrets.NODE_SYNC_APP_*` resolves to empty.

- `NODE_SYNC_APP_CLIENT_ID` (repository variable): Client ID of the GitHub App
- `NODE_SYNC_APP_KEY` (repository secret): PEM-encoded private key of the GitHub App
Required environment secrets:

- `NODE_SYNC_APP_CLIENT_ID`: Client ID of the GitHub App
- `NODE_SYNC_APP_KEY`: PEM-encoded private key of the GitHub App

The App must be installed on `genlayerlabs/genlayer-node` with at least `Contents: Read` permission. Tokens are scoped to that single repository at mint time.

Expand Down
6 changes: 4 additions & 2 deletions .github/workflows/sync-docs-from-node.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ jobs:
prepare:
name: 'Determine Version'
runs-on: ubuntu-latest
environment: Node Sync
outputs:
version: ${{ steps.final_version.outputs.version }}
steps:
Expand All @@ -69,7 +70,7 @@ jobs:
if: steps.extract.outputs.version == 'latest'
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.NODE_SYNC_APP_CLIENT_ID }}
client-id: ${{ secrets.NODE_SYNC_APP_CLIENT_ID }}
private-key: ${{ secrets.NODE_SYNC_APP_KEY }}
repositories: genlayer-node

Expand Down Expand Up @@ -99,6 +100,7 @@ jobs:
name: 'Sync Files'
runs-on: ubuntu-latest
needs: prepare
environment: Node Sync
strategy:
matrix:
sync_type: [changelog, config, config_asimov, config_bradbury, docker_compose, docker_compose_monitoring, alloy_config, greybox_setup, api_gen, api_debug, api_ops]
Expand All @@ -119,7 +121,7 @@ jobs:
id: app-token
uses: actions/create-github-app-token@v3
with:
client-id: ${{ vars.NODE_SYNC_APP_CLIENT_ID }}
client-id: ${{ secrets.NODE_SYNC_APP_CLIENT_ID }}
private-key: ${{ secrets.NODE_SYNC_APP_KEY }}
repositories: genlayer-node

Expand Down
Loading