Skip to content

Commit

Permalink
chore: update permissions in Terraform workflow
Browse files Browse the repository at this point in the history
SCRUM-22
  • Loading branch information
sh1un committed Jun 10, 2024
1 parent 5048a2f commit 130ab46
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/terraform.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ env:
AWS_SECRET_ACCESS_KEY: ${{ secrets.AWS_SECRET_ACCESS_KEY }}
# S3 bucket for the Terraform state

permissions:
contents: write
issues: write
pull-requests: write

jobs:
terraform:
name: "Terraform Infrastructure Change Management"
Expand Down Expand Up @@ -83,7 +88,7 @@ jobs:
- uses: actions/github-script@v6
if: github.event_name == 'pull_request'
env:
GITHUB_TOKEN: ${{ secrets.AWS_EDUCATE_GITHUB_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
PLAN: "terraform\n${{ steps.plan.outputs.stdout }}"
with:
script: |
Expand Down

0 comments on commit 130ab46

Please sign in to comment.