Skip to content

Commit b5c10fe

Browse files
committed
ci: Add id-token: write permission to reusable worflow callers
1 parent 307b657 commit b5c10fe

25 files changed

Lines changed: 25 additions & 0 deletions

.github/workflows/build_airflow.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ jobs:
3232
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3333
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3434
permissions:
35+
id-token: write
3536
contents: read
3637
with:
3738
product-name: airflow

.github/workflows/build_druid.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3535
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3636
permissions:
37+
id-token: write
3738
contents: read
3839
with:
3940
product-name: druid

.github/workflows/build_hadoop.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3535
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3636
permissions:
37+
id-token: write
3738
contents: read
3839
with:
3940
product-name: hadoop

.github/workflows/build_hbase.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3636
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3737
permissions:
38+
id-token: write
3839
contents: read
3940
with:
4041
product-name: hbase

.github/workflows/build_hive.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3636
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3737
permissions:
38+
id-token: write
3839
contents: read
3940
with:
4041
product-name: hive

.github/workflows/build_java-base.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3131
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3232
permissions:
33+
id-token: write
3334
contents: read
3435
with:
3536
product-name: java-base

.github/workflows/build_java-devel.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3131
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3232
permissions:
33+
id-token: write
3334
contents: read
3435
with:
3536
product-name: java-devel

.github/workflows/build_kafka-testing-tools.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,7 @@ jobs:
3434
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3535
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3636
permissions:
37+
id-token: write
3738
contents: read
3839
with:
3940
product-name: kafka-testing-tools

.github/workflows/build_kafka.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@ jobs:
3535
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3636
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3737
permissions:
38+
id-token: write
3839
contents: read
3940
with:
4041
product-name: kafka

.github/workflows/build_krb5.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ jobs:
3030
harbor-robot-secret: ${{ secrets.HARBOR_ROBOT_SDP_GITHUB_ACTION_BUILD_SECRET }}
3131
slack-token: ${{ secrets.SLACK_CONTAINER_IMAGE_TOKEN }}
3232
permissions:
33+
id-token: write
3334
contents: read
3435
with:
3536
product-name: krb5

0 commit comments

Comments
 (0)