Skip to content

Commit

Permalink
Permissions on workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Oct 5, 2024
1 parent 087fdee commit 99d39d1
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/approve-dependabot.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ on:
branches:
- main

permissions:
contents: read

jobs:
enable-auto-merge-github-actions:
if: |-
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/create-prs-for-stale-branches.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,13 @@ concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: false

permissions:
contents: read

jobs:
build-matrix:
runs-on: [self-hosted, linux, build]

permissions:
contents: read

steps:
- name: "Initialise Workspace"
if: startsWith(runner.name, 'buildagent-')
Expand Down
6 changes: 6 additions & 0 deletions .github/workflows/update-labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,17 @@ concurrency:
group: ${{github.workflow}}-${{github.ref}}
cancel-in-progress: true

permissions:
contents: read

jobs:
update-labels-config:

runs-on: [self-hosted, linux, build]

permissions:
issues: write # for crazy-max/ghaction-github-labeler to create, rename, update

steps:
- name: "Initialise Workspace"
if: startsWith(runner.name, 'buildagent-')
Expand Down

0 comments on commit 99d39d1

Please sign in to comment.