Skip to content

Commit

Permalink
security: add permissions block to workflows (#1575)
Browse files Browse the repository at this point in the history
* security: add permissions block to workflows

* Update .github/workflows/labeler.yml

* security: add permissions block to workflows

* Update .github/workflows/snapshoty.yml

---------

Co-authored-by: Damien Mathieu <[email protected]>
  • Loading branch information
reakaleek and dmathieu authored Mar 12, 2024
1 parent d6938d4 commit 699e8df
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/addToAPMProject.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
issues:
types:
- opened
permissions:
contents: read

jobs:
add_to_project:
runs-on: ubuntu-latest
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,10 @@ on:
pull_request_target:
types: [opened]

permissions:
contents: read
issues: write

jobs:
triage:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/snapshoty.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ on:
- '*.asciidoc'
- 'docs/**'

permissions:
contents: read

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

0 comments on commit 699e8df

Please sign in to comment.