Skip to content

Commit dc2eea3

Browse files
authored
Switch to OIDC Federation Service instead of GitHub App (#222)
Currently, the [Gardener GitHub-Actions App](https://github.com/apps/gardener-github-actions) is used to provide more privileged access than available via the default `GITHUB_TOKEN`, for example to circumvent branch protection rules (GitHub Apps can be configured as bypassers) or cross repository privileges. To prevent sharing the GitHub App secret with each and every repository/workflow which requires usage of it, the [GitHub OIDC Federation Service](https://github.com/gardener/github-oidc-federation) has been developed. In essence, it holds the credentials for a central GitHub App and creates short-lived access tokens with a configured scope based on a centrally configured OIDC configuration. See related changes which have been necessary for this repository: - gardener/.github-oidc@03bcd3a Signed-off-by: Jonas Brand (i538859) <j.brand@sap.com>
1 parent ceb6f0c commit dc2eea3

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
with:
1818
mode: ${{ inputs.mode }}
1919
permissions:
20-
contents: read
20+
id-token: write
2121

2222
oci-images:
2323
name: Build OCI-Images

.github/workflows/non-release.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,14 @@ jobs:
1313
mode: snapshot
1414
secrets: inherit
1515
permissions:
16-
contents: write
16+
contents: read
1717
packages: write
1818
id-token: write
1919

2020
component-descriptor:
2121
uses: gardener/cc-utils/.github/workflows/post-build.yaml@master
2222
needs:
2323
- build
24-
secrets: inherit
2524
permissions:
2625
id-token: write
2726
contents: write

.github/workflows/release.yaml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,9 @@ on:
1212
jobs:
1313
build:
1414
uses: ./.github/workflows/build.yaml
15+
secrets: inherit
1516
permissions:
16-
contents: write
17+
contents: read
1718
id-token: write
1819
packages: write
1920
with:

0 commit comments

Comments
 (0)