Skip to content

Commit

Permalink
CI: set minimal permissions for GitHub Workflows (#218)
Browse files Browse the repository at this point in the history
  • Loading branch information
diogoteles08 committed Aug 28, 2023
1 parent 49ac8dc commit b1026e3
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: CI

on: pull_request

permissions:
contents: read

jobs:
ci:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: '0 19 * * 0'

permissions:
contents: read

jobs:
CodeQL-Build:

Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ on:
release:
types: [created]

permissions:
contents: read

jobs:
publish-npm:
runs-on: ubuntu-latest
Expand Down

0 comments on commit b1026e3

Please sign in to comment.