ci: add explicit permissions for migration workflow call sites (#2778)
This commit is contained in:
@@ -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 }}
|
||||
|
||||
@@ -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 }}
|
||||
|
||||
Reference in New Issue
Block a user