Skip to content

Commit

Permalink
CI: add permissions and limit triggers to main (#1669)
Browse files Browse the repository at this point in the history
  • Loading branch information
XhmikosR authored Mar 31, 2023
1 parent acf67aa commit e04f594
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/release-notes.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,17 @@ on:
- main
workflow_dispatch:

permissions:
contents: read

jobs:
update_release_draft:
permissions:
# allow release-drafter/release-drafter to create GitHub releases and add labels to PRs
contents: write
pull-requests: write
runs-on: ubuntu-latest
if: github.repository == 'twbs/icons'
steps:
- uses: release-drafter/release-drafter@v5
env:
Expand Down
8 changes: 6 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,19 @@ name: Tests

on:
push:
branches-ignore:
- "dependabot/**"
branches:
- main
- "!dependabot/**"
pull_request:
workflow_dispatch:

env:
FORCE_COLOR: 2
NODE: 18

permissions:
contents: read

jobs:
test:
runs-on: ubuntu-latest
Expand Down

0 comments on commit e04f594

Please sign in to comment.