Repository navigation
deps: Bump Microsoft.Extensions.Configuration and Microsoft.Extensions.Configuration.Json #243
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: Squad Impact Analysis Request | |
| # Unprivileged half of Squad Impact Analysis (squad-impact.yml). | |
| # | |
| # The github org blocks pull_request_target. This `pull_request` run has a | |
| # read-only token and no secrets, checks out nothing, and runs no PR code. It | |
| # only uploads a claim: the PR number and head SHA it ran for. The privileged | |
| # half treats that claim as untrusted, binds it to the workflow_run payload and | |
| # the live PR, and computes the report itself from the GitHub API. | |
| on: | |
| pull_request: | |
| branches: [dev] | |
| types: [opened, synchronize, reopened] | |
| permissions: {} | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.event.pull_request.number }} | |
| cancel-in-progress: true | |
| jobs: | |
| impact: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 2 | |
| if: github.actor != 'dependabot[bot]' | |
| steps: | |
| - name: Write PR claim (no checkout, no PR code) | |
| env: | |
| PR_NUMBER: ${{ github.event.pull_request.number }} | |
| HEAD_SHA: ${{ github.event.pull_request.head.sha }} | |
| run: | | |
| mkdir -p "$RUNNER_TEMP/claim" | |
| jq -n --argjson pr_number "$PR_NUMBER" --arg head_sha "$HEAD_SHA" \ | |
| '{schema: "squad-pr-claim/v1", pr_number: $pr_number, head_sha: $head_sha}' \ | |
| > "$RUNNER_TEMP/claim/claim.json" | |
| - name: Upload PR claim | |
| uses: actions/upload-artifact@cf430e030ddbb5b0abf93d22962f4752f3646cd9 #v7 | |
| with: | |
| name: squad-impact-request | |
| path: ${{ runner.temp }}/claim/claim.json | |
| if-no-files-found: error | |
| retention-days: 1 | |
| overwrite: true |