ci: add explicit permissions for migration workflow call sites (#2778)

This commit is contained in:
James Ward
2026-09-27 05:17:16 -04:00
committed by GitHub
parent bd94696ebe
commit b5a9ed5e67
2 changed files with 4 additions and 0 deletions
+2
View File
@@ -51,6 +51,8 @@ jobs:
name: Flyway Migration Check
if: ${{ github.event_name != 'push' || !contains(github.event.head_commit.message, '[skip ci]') }}
uses: ./.github/workflows/migrations-check.yml
permissions:
contents: read
with:
base_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.base.sha || github.event.before }}
head_ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
+2
View File
@@ -13,6 +13,8 @@ jobs:
migration-check:
name: Flyway Migration Check
uses: ./.github/workflows/migrations-check.yml
permissions:
contents: read
with:
base_ref: ${{ github.event.before }}
head_ref: ${{ github.sha }}