diff --git a/.github/workflows/auto_check.yml b/.github/workflows/auto_check.yml index d7a78cb..2b88bbf 100644 --- a/.github/workflows/auto_check.yml +++ b/.github/workflows/auto_check.yml @@ -14,8 +14,13 @@ jobs: 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: ${{ secrets.DAPPNODE_ACTIONS_PR_CREATOR }} + GITHUB_TOKEN: ${{ steps.app-token.outputs.token }} PINATA_API_KEY: ${{ secrets.PINATA_API_KEY }} PINATA_SECRET_API_KEY: ${{ secrets.PINATA_SECRET_API_KEY }} diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a688948..86a6239 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 EXECUTION_CLIENT=${{ github.event.inputs.execution_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 2b5f4c9..ffb001c 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 CONSENSUS_CLIENT='nimbus' -e IPFS_HASH=${{ needs.build.outputs.ipfs_hash }} -e EXECUTION_CLIENT=${{ github.event.inputs.execution_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