From 2c415119855c03d6b2a36e7649126d5299b4a530 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Tue, 19 May 2026 12:05:08 +0200 Subject: [PATCH 1/2] ci: use GitHub App token for auto_check PRs to trigger downstream workflows --- .github/workflows/auto_check.yaml | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/.github/workflows/auto_check.yaml b/.github/workflows/auto_check.yaml index e1247a4..c339c61 100644 --- a/.github/workflows/auto_check.yaml +++ b/.github/workflows/auto_check.yaml @@ -9,17 +9,18 @@ on: - "master" - "main" -permissions: - contents: write - pull-requests: write - jobs: build: runs-on: ubuntu-latest steps: - uses: actions/checkout@v6 + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.TROPI_APP_ID }} + private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - run: npx @dappnode/dappnodesdk github-action bump-upstream --use-variants env: - GITHUB_TOKEN: ${{ github.token }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }} PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }} From 9eb1de3b3a8fcf6359f3d207c0f155b1f990f7a0 Mon Sep 17 00:00:00 2001 From: 3alpha <15694175+3alpha@users.noreply.github.com> Date: Tue, 19 May 2026 12:24:59 +0200 Subject: [PATCH 2/2] ci: switch workflows to GitHub App token Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/release.yml | 14 ++++++++++++-- .github/workflows/sync-test.yml | 7 ++++++- 2 files changed, 18 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c51c156..1194007 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -37,13 +37,18 @@ jobs: needs: [build] steps: - uses: actions/checkout@v6 + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.TROPI_APP_ID }} + private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - name: Run staker test runner run: | docker run --rm --pull=always \ --network dncore_network -e CONSENSUS_CLIENT=${{ github.event.inputs.consensus_client }} \ -v /var/run/docker.sock:/var/run/docker.sock \ -e MODE=test -e IPFS_HASH=${{ needs.build.outputs.ipfs_hash }} \ - -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ + -e GITHUB_TOKEN=${{ steps.app-token.outputs.token }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ ghcr.io/dappnode/staker-test-util/test-runner:latest release: @@ -55,8 +60,13 @@ jobs: - uses: actions/setup-node@v6 with: node-version: "22" + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.TROPI_APP_ID }} + private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - name: Publish run: npx @dappnode/dappnodesdk publish patch --github-release --content_provider=http://10.200.200.7:5001 --eth_provider=https://web3.dappnode.net --timeout 2h --all-variants env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} DEVELOPER_ADDRESS: "0xf35960302a07022aba880dffaec2fdd64d5bf1c1" diff --git a/.github/workflows/sync-test.yml b/.github/workflows/sync-test.yml index 1c00457..c5e67ea 100644 --- a/.github/workflows/sync-test.yml +++ b/.github/workflows/sync-test.yml @@ -37,10 +37,15 @@ jobs: name: Execution Client Sync Test needs: [build] steps: + - uses: actions/create-github-app-token@v1 + id: app-token + with: + app-id: ${{ vars.TROPI_APP_ID }} + private-key: ${{ secrets.TROPI_APP_PRIVATE_KEY }} - name: Run sync run: | docker run --rm --pull=always --network dncore_network \ -v /var/run/docker.sock:/var/run/docker.sock \ -e MODE=sync -e EXECUTION_CLIENT='besu' -e IPFS_HASH=${{ needs.build.outputs.ipfs_hash }} -e CONSENSUS_CLIENT=${{ github.event.inputs.consensus_client }} \ - -e GITHUB_TOKEN=${{ secrets.GITHUB_TOKEN }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ + -e GITHUB_TOKEN=${{ steps.app-token.outputs.token }} -e GITHUB_REPOSITORY=${{ github.repository }} -e GITHUB_PR_NUMBER=${{ github.event.pull_request.number }} -e GITHUB_RUN_ID=${{ github.run_id }} -e GITHUB_SERVER_URL=${{ github.server_url }} \ ghcr.io/dappnode/staker-test-util/test-runner:latest