Skip to content

Commit

Permalink
ci: fix release workflow permission
Browse files Browse the repository at this point in the history
  • Loading branch information
marksvc committed Feb 26, 2025
1 parent ef2ef82 commit 3ab3f87
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/release-live.yml
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,8 @@ jobs:
deploy:
name: "Deploy to Live"
needs: [determine_build_commit, determine_version]
permissions:
contents: write
uses: ./.github/workflows/release.yml
secrets:
deploy_known_hosts: ${{ secrets.deploy_known_hosts }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release-qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,8 @@ jobs:
deploy:
name: "Deploy to QA"
needs: [determine_build_commit, determine_version]
permissions:
contents: write
uses: ./.github/workflows/release.yml
secrets:
deploy_known_hosts: ${{ secrets.deploy_known_hosts }}
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,8 @@ jobs:
deploy:
name: "Deploy"
environment: "${{inputs.environment}}"
permissions:
contents: write
runs-on: ${{inputs.os}}
steps:
- name: Place SSH deploy credentials
Expand Down

0 comments on commit 3ab3f87

Please sign in to comment.