Skip to content

Commit

Permalink
Tightening workflow permissions.
Browse files Browse the repository at this point in the history
  • Loading branch information
julialawrence committed Feb 13, 2023
1 parent 49d86d5 commit 8e3972f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,11 @@ on:
paths:
- '**.md'
- '.github/workflows/documentation.yml'

permissions: {}
jobs:
docs:
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
Expand Down
4 changes: 4 additions & 0 deletions .github/workflows/go-terratest.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,16 @@
on:
pull_request:
types: [opened, edited, reopened, synchronize]
permissions: {}
env:
AWS_ACCESS_KEY_ID: ${{ secrets.AWS_ACCESS_KEY_ID }}
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
TF_IN_AUTOMATION: true
jobs:
go-tests:
permissions:
contents: read
actions: write
name: Run Go Unit Tests
runs-on: ubuntu-latest
steps:
Expand Down

0 comments on commit 8e3972f

Please sign in to comment.