Skip to content

Commit e04f594

Browse files
authored
CI: add permissions and limit triggers to main (#1669)
1 parent acf67aa commit e04f594

File tree

2 files changed

+14
-2
lines changed

2 files changed

+14
-2
lines changed

.github/workflows/release-notes.yml

+8
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,17 @@ on:
66
- main
77
workflow_dispatch:
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
update_release_draft:
14+
permissions:
15+
# allow release-drafter/release-drafter to create GitHub releases and add labels to PRs
16+
contents: write
17+
pull-requests: write
1118
runs-on: ubuntu-latest
19+
if: github.repository == 'twbs/icons'
1220
steps:
1321
- uses: release-drafter/release-drafter@v5
1422
env:

.github/workflows/test.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,19 @@ name: Tests
22

33
on:
44
push:
5-
branches-ignore:
6-
- "dependabot/**"
5+
branches:
6+
- main
7+
- "!dependabot/**"
78
pull_request:
89
workflow_dispatch:
910

1011
env:
1112
FORCE_COLOR: 2
1213
NODE: 18
1314

15+
permissions:
16+
contents: read
17+
1418
jobs:
1519
test:
1620
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)