Skip to content

Commit

Permalink
Feat: initial permissions to main.yml (#76)
Browse files Browse the repository at this point in the history
Signed-off-by: Joyce <joycebrumu.u@gmail.com>
  • Loading branch information
joycebrum authored and jaraco committed Mar 18, 2023
1 parent 56cdf46 commit 109f8c0
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ name: tests

on: [push, pull_request]

permissions:
contents: read

env:
# Environment variables to support color support (jaraco/skeleton#66):
# Request colored output from CLI tools supporting it. Different tools
Expand Down Expand Up @@ -104,6 +107,8 @@ jobs:
jobs: ${{ toJSON(needs) }}

release:
permissions:
contents: write
needs:
- check
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
Expand Down

0 comments on commit 109f8c0

Please sign in to comment.