Skip to content

Commit

Permalink
Explicit workflow permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
SMadani committed May 17, 2024
1 parent 6767b0e commit 354853d
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,19 @@ on:
- main
pull_request:

permissions:
actions: write
checks: write
contents: read
deployments: read
issues: write
discussions: read
packages: none
pages: read
pull-requests: write
security-events: write
statuses: write

jobs:
build_only:
runs-on: ${{ matrix.os }}
Expand Down
13 changes: 13 additions & 0 deletions .github/workflows/metrics.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@ on:
schedule:
- cron: "0 0 * * *"

permissions:
actions: write
checks: read
contents: read
deployments: read
issues: read
discussions: read
packages: none
pages: read
pull-requests: read
security-events: read
statuses: write

jobs:
recordMetrics:
runs-on: ubuntu-latest
Expand Down
14 changes: 14 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,20 @@ name: Publish to Nexus
on:
release:
types: [published]

permissions:
actions: write
checks: write
contents: write
deployments: read
issues: write
discussions: write
packages: write
pages: write
pull-requests: write
security-events: write
statuses: write

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

0 comments on commit 354853d

Please sign in to comment.