Add minimum GitHub token permissions for workflows

Signed-off-by: Varun Sharma <varunsh@stepsecurity.io>
This commit is contained in:
Varun Sharma 2022-09-10 11:56:34 -07:00 committed by Benoit Daloze
parent 5690c5d075
commit 91da74d88e
3 changed files with 9 additions and 0 deletions

View file

@ -2,6 +2,9 @@ name: Test
on: [push, pull_request]
permissions:
contents: read
jobs:
test:
strategy:

View file

@ -10,6 +10,9 @@ on:
description: Git commit reference to start comparing from
required: true
permissions:
contents: read
jobs:
mirror:
runs-on: ubuntu-latest

View file

@ -3,6 +3,9 @@ on:
push:
tags: 'v*'
permissions:
contents: read
jobs:
homebrew:
name: Bump Homebrew formula