Skip to content

Commit

Permalink
ci: add minimal permissions on github workflows (#258)
Browse files Browse the repository at this point in the history
Signed-off-by: Diogo Teles Sant'Anna <diogoteles@google.com>
  • Loading branch information
diogoteles08 authored Sep 2, 2023
1 parent 84ec7af commit 6e6d11d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,9 @@ name: GitHub CI

on: [push, pull_request]

permissions:
contents: read

jobs:
build:
name: Verify
Expand Down
7 changes: 7 additions & 0 deletions .github/workflows/release-drafter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,17 @@ on:
push:
branches:
- master

permissions:
contents: read

jobs:
update_release_draft:
runs-on: ubuntu-latest
permissions:
contents: write # for release-drafter/release-drafter to create a github release
steps:
- uses: release-drafter/release-drafter@v5
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 6e6d11d

Please sign in to comment.