feat(shim): add task wrapper and containerd access session #30
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@f8d387b68d61c58ab83c6c016672934102569859 # v3.0.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 |