Skip to content

Commit

Permalink
Add minimum GitHub token permissions for workflows
Browse files Browse the repository at this point in the history
Signed-off-by: Varun Sharma <[email protected]>
  • Loading branch information
varunsh-coder authored and eregon committed Sep 11, 2022
1 parent 5690c5d commit 91da74d
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: Test

on: [push, pull_request]

permissions:
contents: read

jobs:
test:
strategy:
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ on:
description: Git commit reference to start comparing from
required: true

permissions:
contents: read

jobs:
mirror:
runs-on: ubuntu-latest
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@ on:
push:
tags: 'v*'

permissions:
contents: read

jobs:
homebrew:
name: Bump Homebrew formula
Expand Down

0 comments on commit 91da74d

Please sign in to comment.