Skip to content

Commit

Permalink
Use GitHub permissions instead of environment validation (#infra)
Browse files Browse the repository at this point in the history
Strip down the permissions to required minimum.
  • Loading branch information
jkonecny12 committed Jun 22, 2021
1 parent 77e8be0 commit 0126510
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/infra-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,12 @@ on:
pull_request_target:
types: [ "opened", "synchronize", "reopened", "labeled" ]

permissions:
contents: read

jobs:
infra-check:
if: contains(github.event.pull_request.labels.*.name, 'infrastructure')
environment: staging
runs-on: ubuntu-20.04

steps:
Expand Down

0 comments on commit 0126510

Please sign in to comment.