chore(deps): Bump docker/build-push-action from ff26911fd365b0233252dfbd8eede1c0e9ef9a51 to 53b7df96c91f9c12dcc8a07bcb9ccacbed38856a #105
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Add Git Trailers to PR commits | |
| on: | |
| pull_request_review: | |
| types: [submitted] | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }} | |
| cancel-in-progress: true | |
| permissions: | |
| contents: read | |
| jobs: | |
| git-trailers: | |
| name: Add Git Trailers | |
| if: >- | |
| github.event.pull_request.base.ref == 'main' && | |
| github.event.review.state == 'approved' | |
| runs-on: ubuntu-22.04 | |
| permissions: | |
| contents: write | |
| steps: | |
| - name: Harden the runner (Audit all outbound calls) | |
| uses: step-security/harden-runner@ec9f2d5744a09debf3a187a3f4f675c53b671911 # v2.13.0 | |
| with: | |
| egress-policy: audit | |
| - name: Exit if PR is not rebaseable | |
| if: ${{ github.event.pull_request.rebaseable != null && github.event.pull_request.rebaseable == false }} | |
| run: exit 1 | |
| - name: Checkout code | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 | |
| with: | |
| fetch-depth: 0 | |
| ref: ${{ github.event.pull_request.head.sha }} | |
| - name: Generate urunc-bot token | |
| id: generate-token | |
| uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 | |
| with: | |
| app-id: ${{ vars.URUNC_BOT_APP_ID }} | |
| private-key: ${{ secrets.URUNC_BOT_PRIVATE_KEY }} | |
| - name: Append git trailers | |
| uses: nubificus/git-trailers@1d1595aacfd9239ae69d773cb895606daa17e538 | |
| with: | |
| token: ${{ steps.generate-token.outputs.token }} | |
| user-info: .github/contributors.yaml | |
| - name: Merge PR | |
| env: | |
| GH_TOKEN: ${{ steps.generate-token.outputs.token }} | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| run: | | |
| sleep 5 # Wait for github to get updated with the push. Otherwise merge will fail | |
| gh pr merge "$PR_URL" --rebase --admin |