Improve resolver scan intelligence and budget controls #4
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: StormDNS Boundary | |
| on: | |
| pull_request: | |
| types: | |
| - opened | |
| - synchronize | |
| - reopened | |
| - labeled | |
| - unlabeled | |
| permissions: | |
| contents: read | |
| pull-requests: read | |
| jobs: | |
| upstream-guard: | |
| name: Guard upstream engine changes | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout WhiteDNS | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| submodules: false | |
| - name: Check StormDNS upstream boundary | |
| env: | |
| HAS_UPSTREAM_LABEL: ${{ contains(github.event.pull_request.labels.*.name, 'allow-stormdns-upstream') }} | |
| run: | | |
| set -euo pipefail | |
| base_ref="${{ github.event.pull_request.base.sha }}" | |
| head_ref="${{ github.event.pull_request.head.sha }}" | |
| if scripts/check-stormdns-boundary.sh "${base_ref}" "${head_ref}"; then | |
| exit 0 | |
| fi | |
| if [[ "${HAS_UPSTREAM_LABEL}" == "true" ]]; then | |
| echo "StormDNS upstream changes are intentionally labeled." | |
| exit 0 | |
| fi | |
| exit 1 |