Merge main into live #394
  
    
      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: Base branch checker | |
| on: [pull_request] | |
| permissions: | |
| contents: read | |
| jobs: | |
| live_protection_job: | |
| name: Check base branch | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@cb605e52c26070c328afc4562f0b4ada7618a84e # v2.10.4 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea | |
| env: | |
| LIVE_BASE: ${{ github.base_ref == 'live' && github.head_ref != 'main' }} | |
| with: | |
| script: | | |
| if (process.env.LIVE_BASE == 'true') { | |
| core.setFailed('PR targets live branch') | |
| } |