Skip to content

Commit

Permalink
chore(ci): add tests running on CI for release branches, limit permis…
Browse files Browse the repository at this point in the history
…sions of GITHUB_TOKEN (#252)
  • Loading branch information
pmalek authored Jan 22, 2025
1 parent 0279242 commit d0cb6c5
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,9 @@ on:
required: true
type: boolean

permissions:
contents: read

jobs:
tests:
name: Run tests
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ on:
pull_request:
branches:
- 'main'
- 'release/*'
push:
branches:
- 'main'
Expand All @@ -20,6 +21,9 @@ on:
workflow_dispatch: {}
workflow_call: {}

permissions:
contents: read

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

0 comments on commit d0cb6c5

Please sign in to comment.