Skip to content

Commit

Permalink
ci: Protect workflows via CODEOWNERS and explicit user matching (#240)
Browse files Browse the repository at this point in the history
  • Loading branch information
mansenfranzen authored Mar 26, 2024
1 parent 11afaf3 commit c07d1f2
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ jobs:
pull-requests: write
contents: write
name: Run pr agent on every pull request, respond to user comments
if: (github.actor == 'mansenfranzen') || (github.triggering_actor == 'mansenfranzen')
steps:
- name: PR Agent action step
id: pragent
Expand Down
3 changes: 2 additions & 1 deletion .github/workflows/release-please.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Release

on:
push:
branches:
Expand All @@ -7,7 +9,6 @@ permissions:
contents: write
pull-requests: write

name: release-please

jobs:
release-please:
Expand Down
3 changes: 3 additions & 0 deletions CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
/.github/workflows/pr-agent.yml @mansenfranzen
/.github/workflows/release-please.yml @mansenfranzen
/CODEOWNERS @mansenfranzen

0 comments on commit c07d1f2

Please sign in to comment.