Skip to content

Commit

Permalink
Any PR with "dangerous" edits should be considered dangerous
Browse files Browse the repository at this point in the history
Fixes mdn#2985
  • Loading branch information
peterbe committed Mar 16, 2021
1 parent 1d33486 commit 82a664c
Showing 1 changed file with 22 additions and 0 deletions.
22 changes: 22 additions & 0 deletions .github/workflows/dangerous-contributions.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
name: Dangerous file changes

on:
pull_request_target:
paths:
- '.github/workflows/**'
- '.github/CODEOWNERS'
- '.github/dependabot.yml'
- package.json
- yarn.lock

jobs:
triage:
# This make sure it only runs on our origin repo
if: github.repository == 'mdn/content' && github.event.pull_request.user.login != 'dependabot'
runs-on: ubuntu-latest
steps:
- name: Stop anything and everything
run: |
echo "Any PR that edits these files should break the build and expect admin overrides"
echo ${{ github.event.pull_request }}
exit 1

0 comments on commit 82a664c

Please sign in to comment.