diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 02d8571..a95773d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -617,6 +617,9 @@ jobs: needs: ["release-tree", "tests", "static-analysis", "benchmarks", "e2e"] if: ${{ github.event_name == 'push' && github.ref_name == '1.x' }} runs-on: "ubuntu-latest" + environment: + name: push + deployment: false timeout-minutes: 10 concurrency: @@ -629,11 +632,20 @@ jobs: with: egress-policy: audit + - name: "Mint a push token for phpstan/tally" + id: push-token + uses: actions/create-github-app-token@f418cff399f7aef4c2f0ad47e25ca7a6abbdd6fc # v3.4.0 + with: + client-id: ${{ vars.PUSH_APP_CLIENT_ID }} + private-key: ${{ secrets.PUSH_APP_PRIVATE_KEY }} + repositories: tally + permission-contents: write + - name: "Checkout" uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: - # a token that may bypass the branch rules, and whose push runs CI on release/1.x - token: ${{ secrets.PHPSTAN_BOT_TOKEN }} + # the phpstan-push App may bypass the branch rules, and its push runs CI on release/1.x + token: ${{ steps.push-token.outputs.token }} - name: "Download CodSpeed's Valgrind" uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2