build(deps): bump actions/dependency-review-action from 3 to 4 #1
This file contains 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: PR Target Check | ||
on: | ||
pull_request_target: | ||
types: [opened] | ||
permissions: | ||
pull-requests: write | ||
jobs: | ||
comment: | ||
if: ${{ github.base_ref != "master" }} | ||
Check failure on line 12 in .github/workflows/target-main.yml GitHub Actions / PR Target CheckInvalid workflow file
|
||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/github-script@v7 | ||
with: | ||
script: | | ||
github.rest.issues.createComment({ | ||
issue_number: context.issue.number, | ||
owner: context.repo.owner, | ||
repo: context.repo.repo, | ||
body: '⚠️ This pull request does not target the master branch.' | ||
}) |