-
Notifications
You must be signed in to change notification settings - Fork 8
Add direct-push alerting and sensitive-change gate #214
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: Direct Push Alert | ||
|
|
||
| on: | ||
| push: | ||
| branches: [main] | ||
|
|
||
| permissions: | ||
| contents: read | ||
| issues: write | ||
|
|
||
| jobs: | ||
| alert: | ||
| uses: basecamp/.github/.github/workflows/direct-push-alert.yml@a667bfaac8b33b9c8a6c61019664463a98055995 | ||
| permissions: | ||
| contents: read | ||
| issues: write | ||
| Original file line number | Diff line number | Diff line change | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,21 @@ | ||||||||||||||
| name: Sensitive Change Gate | ||||||||||||||
|
|
||||||||||||||
| on: | ||||||||||||||
| pull_request_target: | ||||||||||||||
| types: [opened, synchronize, reopened] | ||||||||||||||
|
Comment on lines
+4
to
+5
|
||||||||||||||
|
|
||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
| pull-requests: write | ||||||||||||||
|
|
||||||||||||||
| jobs: | ||||||||||||||
| gate: | ||||||||||||||
| uses: basecamp/.github/.github/workflows/sensitive-change-gate.yml@a667bfaac8b33b9c8a6c61019664463a98055995 | ||||||||||||||
| with: | ||||||||||||||
| extra-patterns: | | ||||||||||||||
| scripts/publish-aur.sh | ||||||||||||||
| scripts/sync-skills.sh | ||||||||||||||
| scripts/manage-release-env.sh | ||||||||||||||
| permissions: | ||||||||||||||
| contents: read | ||||||||||||||
| pull-requests: write | ||||||||||||||
|
Comment on lines
+19
to
+21
|
||||||||||||||
| permissions: | |
| contents: read | |
| pull-requests: write | |
| # Requires permissions: | |
| # contents: read | |
| # pull-requests: write |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
permissionskey inside a job that uses a reusable workflow (uses:) is not valid GitHub Actions syntax and is silently ignored at runtime. The actual permissions enforced come from the top-levelpermissionsblock (lines 7–9). The job-level block here has no effect.Note that the same pattern is already present in
.github/workflows/ai-labeler.yml— so this appears to be an established (if ineffective) convention in the repository.