Skip to content

Commit

Permalink
Add write permission to GitHub token
Browse files Browse the repository at this point in the history
  • Loading branch information
MarekMichali committed Feb 25, 2025
1 parent 0608c6a commit f1b9fa5
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/auto-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@ on:
workflow_dispatch:
schedule:
- cron: '0 0 * * *'

permissions:
contents: write
jobs:
auto-bump-chart:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/create-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ env:
GIT_NAME: kyma-gopher-bot
BRANCH_NAME: sec-scanners-config-${{ inputs.name }}

permissions:
contents: write

on:
workflow_dispatch:
inputs:
Expand Down
5 changes: 5 additions & 0 deletions .github/workflows/label-validator.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ on:
pull_request_target:
types: ["opened", "labeled", "unlabeled", "synchronize", "reopened", "ready_for_review", "edited"]
branches: [ "main" ]

permissions:
discussions: write
pull-requests: write

jobs:
validate-labels:
runs-on: ubuntu-latest
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/sync-with-main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ on:
- cron: '0 0 * * *'
env:
GH_TOKEN: ${{ secrets.BOT_TOKEN }}
permissions:
contents: write
jobs:
sync:
runs-on: ubuntu-latest
Expand Down

0 comments on commit f1b9fa5

Please sign in to comment.