diff --git a/.github/workflows/e2e-pipeline.yml b/.github/workflows/e2e-pipeline.yml index 3831536f3..80f6a6997 100644 --- a/.github/workflows/e2e-pipeline.yml +++ b/.github/workflows/e2e-pipeline.yml @@ -28,7 +28,6 @@ jobs: - uses: actions/checkout@v4 with: submodules: recursive - token: ${{ secrets.GITHUB_TOKEN }} - name: install foundry uses: foundry-rs/foundry-toolchain@v1 with: @@ -46,8 +45,12 @@ jobs: scarb-version: 0.7.0 - name: Run staging script env: - KAKAROT_STAGING_PRIVATE_KEY: - ${{ secrets.KAKAROT_STAGING_PRIVATE_KEY }} + STARKNET_SEPOLIA_STAGING_PRIVATE_KEY: + ${{ secrets.STARKNET_SEPOLIA_STAGING_PRIVATE_KEY }} + STARKNET_SEPOLIA_STAGING_ACCOUNT_ADDRESS: + ${{ secrets.STARKNET_SEPOLIA_STAGING_ACCOUNT_ADDRESS }} + INFURA_KEY: + ${{ secrets.INFURA_KEY }} run: | cd scripts sh e2e_pipeline.sh ${{ github.event.inputs.action }} --${{ github.event.inputs.environment }} @@ -59,10 +62,14 @@ jobs: has_diff=$? set -e echo "has_diff=$has_diff" >> $GITHUB_ENV + - uses: actions/create-github-app-token@v1 + id: github_token + with: + app-id: ${{ secrets.KAKAROT_BOT_APP_ID }} + private-key: ${{ secrets.KAKAROT_BOT_APP_PRIVATE_KEY }} + owner: ${{ github.repository_owner }} - name: Create PR for deployment updates if: ${{ env.has_diff == 1 }} - env: - GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} run: | set +e cd lib/kakarot