Skip to content

Commit abc5deb

Browse files
8R0WNI3fabianburth
andauthored
Switch to OIDC Federation Service instead of GitHub App (#51)
<!-- markdownlint-disable MD041 --> #### What this PR does / why we need it 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: - open-component-model/.github-oidc#1 #### Which issue(s) this PR fixes <!-- Usage: `Fixes #<issue number>`, or `Fixes (paste link of issue)`. --> Signed-off-by: Jonas Brand (8R0WNI3) <j.brand@sap.com> Co-authored-by: Fabian Burth <fabian.burth@sap.com>
1 parent 8aade18 commit abc5deb

File tree

3 files changed

+1
-5
lines changed

3 files changed

+1
-5
lines changed

.github/workflows/build.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
prepare:
1616
uses: gardener/cc-utils/.github/workflows/prepare.yaml@master
1717
permissions:
18-
contents: read
18+
id-token: write
1919
with:
2020
mode: ${{ inputs.mode }}
2121

.github/workflows/non-release.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ on:
66
jobs:
77
build:
88
uses: ./.github/workflows/build.yaml
9-
secrets: inherit
109
permissions:
1110
contents: read
1211
packages: write
@@ -18,7 +17,6 @@ jobs:
1817
uses: gardener/cc-utils/.github/workflows/post-build.yaml@master
1918
needs:
2019
- build
21-
secrets: inherit
2220
permissions:
2321
contents: write
2422
id-token: write

.github/workflows/release.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ on:
1111
jobs:
1212
build:
1313
uses: ./.github/workflows/build.yaml
14-
secrets: inherit
1514
permissions:
1615
contents: read
1716
packages: write
@@ -23,7 +22,6 @@ jobs:
2322
uses: gardener/cc-utils/.github/workflows/release.yaml@master
2423
needs:
2524
- build
26-
secrets: inherit
2725
permissions:
2826
contents: write
2927
packages: write

0 commit comments

Comments
 (0)