Skip to content

Commit bb8499e

Browse files
committed
fix opex pipelines permissions
1 parent 0ab7f2a commit bb8499e

9 files changed

+69
-9
lines changed

.github/workflows/opex_api_backend.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}
1616

17+
permissions:
18+
id-token: write
19+
contents: read
20+
1721
jobs:
1822
apply:
1923
uses: ./.github/workflows/call_opex_api.yml
2024
name: Apply changes to Production
21-
secrets: inherit
25+
secrets:
26+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
27+
AZURE_CLIENT_ID_CD: ${{ secrets.AZURE_CLIENT_ID_CD }}
28+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
29+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2230
with:
2331
api_name: api_backend

.github/workflows/opex_api_io_fims.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}
1616

17+
permissions:
18+
id-token: write
19+
contents: read
20+
1721
jobs:
1822
apply:
1923
uses: ./.github/workflows/call_opex_api.yml
2024
name: Apply changes to Production
21-
secrets: inherit
25+
secrets:
26+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
27+
AZURE_CLIENT_ID_CD: ${{ secrets.AZURE_CLIENT_ID_CD }}
28+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
29+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2230
with:
2331
api_name: api_io_fims

.github/workflows/opex_api_public.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}
1616

17+
permissions:
18+
id-token: write
19+
contents: read
20+
1721
jobs:
1822
apply:
1923
uses: ./.github/workflows/call_opex_api.yml
2024
name: Apply changes to Production
21-
secrets: inherit
25+
secrets:
26+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
27+
AZURE_CLIENT_ID_CD: ${{ secrets.AZURE_CLIENT_ID_CD }}
28+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
29+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2230
with:
2331
api_name: api_public

.github/workflows/opex_api_services_app_backend.yml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,18 @@ on:
1414
concurrency:
1515
group: ${{ github.workflow }}
1616

17+
permissions:
18+
id-token: write
19+
contents: read
20+
1721
jobs:
1822
apply:
1923
uses: ./.github/workflows/call_opex_api.yml
2024
name: Apply changes to Production
21-
secrets: inherit
25+
secrets:
26+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
27+
AZURE_CLIENT_ID_CD: ${{ secrets.AZURE_CLIENT_ID_CD }}
28+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
29+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2230
with:
2331
api_name: api_services_app_backend

.github/workflows/pr_opex_api_backend.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2222
cancel-in-progress: false
2323

24+
permissions:
25+
id-token: write
26+
pull-requests: write
27+
2428
jobs:
2529
plan:
2630
uses: ./.github/workflows/call_pr_opex_api.yml
2731
name: Plan changes against Production
28-
secrets: inherit
32+
secrets:
33+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
34+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
35+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2936
with:
3037
api_name: api_backend

.github/workflows/pr_opex_api_identity.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ on:
1010
branches:
1111
- master
1212
paths:
13-
- 'api_identity.yaml'
13+
- 'openapi/generated/api_identity.yaml'
1414
- '.github/workflows/pr_opex_api_identity.yml'
1515
- '.github/workflows/opex_api_identity.yml'
1616
- '.opex/api_identity/**'

.github/workflows/pr_opex_api_io_fims.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2222
cancel-in-progress: false
2323

24+
permissions:
25+
id-token: write
26+
pull-requests: write
27+
2428
jobs:
2529
plan:
2630
uses: ./.github/workflows/call_pr_opex_api.yml
2731
name: Plan changes against Production
28-
secrets: inherit
32+
secrets:
33+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
34+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
35+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2936
with:
3037
api_name: api_io_fims

.github/workflows/pr_opex_api_public.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2222
cancel-in-progress: false
2323

24+
permissions:
25+
id-token: write
26+
pull-requests: write
27+
2428
jobs:
2529
plan:
2630
uses: ./.github/workflows/call_pr_opex_api.yml
2731
name: Plan changes against Production
28-
secrets: inherit
32+
secrets:
33+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
34+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
35+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2936
with:
3037
api_name: api_public

.github/workflows/pr_opex_api_services_app_backend.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,17 @@ concurrency:
2121
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
2222
cancel-in-progress: false
2323

24+
permissions:
25+
id-token: write
26+
pull-requests: write
27+
2428
jobs:
2529
plan:
2630
uses: ./.github/workflows/call_pr_opex_api.yml
2731
name: Plan changes against Production
28-
secrets: inherit
32+
secrets:
33+
AZURE_CLIENT_ID_CI: ${{ secrets.AZURE_CLIENT_ID_CI }}
34+
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
35+
AZURE_SUBSCRIPTION_ID: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
2936
with:
3037
api_name: api_services_app_backend

0 commit comments

Comments
 (0)