Skip to content

Commit d2ac0b2

Browse files
Merge pull request #56 from netboxlabs/chore/update-release-codeowners
Chore/update release codeowners
2 parents 336b059 + f254dee commit d2ac0b2

File tree

2 files changed

+15
-3
lines changed

2 files changed

+15
-3
lines changed

.github/CODEOWNERS

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# CODEOWNERS - Require review from maintainers for critical files
2+
/.github/workflows/ @abubnalitic-nbl @ltucker
3+
/pyproject.toml @abubnalitic-nbl @ltucker
4+
/.github/CODEOWNERS @abubnalitic-nbl @ltucker

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
name: Release
22

3+
# Global defaults - read-only (least privilege)
34
permissions:
4-
contents: write
5-
issues: write
6-
pull-requests: write
5+
contents: read
6+
issues: read
7+
pull-requests: read
78

89
on:
910
workflow_dispatch:
1011

1112
jobs:
1213
release:
1314
runs-on: ubuntu-latest
15+
environment: release # Requires manual approval in GitHub settings
16+
17+
# Job-specific write permissions (least privilege)
18+
permissions:
19+
contents: write # Push tags and CHANGELOG
20+
issues: write # Create release issues
21+
pull-requests: write # Create release PRs
1422

1523
steps:
1624
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2

0 commit comments

Comments
 (0)