Skip to content

Commit

Permalink
Fix actions' permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
damyan committed Feb 28, 2024
1 parent f735488 commit 2ecf3d7
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/auto-merge.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
name: Dependabot auto-approve

on: pull_request

permissions:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/pipeline.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,11 @@ on:
- 'docs/**'
- '**/*.md'

permissions:
contents: read
packages: write


env:
platforms: linux/amd64,linux/arm64
registry: ghcr.io
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@ on:
- main
pull_request:

permissions:
contents: write
pull-requests: write

jobs:
update_release_draft:
runs-on: ubuntu-latest
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/size-labels.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,12 +2,13 @@ name: 'Assign size labels to PRs'

on: [workflow_dispatch, pull_request]

permissions:
contents: read
pull-requests: write

jobs:
size-label:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- name: size-label
uses: pascalgn/[email protected]
Expand Down

0 comments on commit 2ecf3d7

Please sign in to comment.