Skip to content

Commit 2ee4ac4

Browse files
clayburnmtt-merz
authored andcommitted
Authenticate GitHub Actions builds to ge.apache.org (apache#5422)
This change allows GitHub Actions builds to submit build scans to ge.apache.org by authenticating those builds. The access key has been stored as an organizational secret by the ASF Infrastructure team in the Apache GitHub organization. The access key is not available to workflows triggered from forks. This builds on the changes in apache#5411 (cherry picked from commit be3f6d6)
1 parent d7df124 commit 2ee4ac4

File tree

7 files changed

+21
-0
lines changed

7 files changed

+21
-0
lines changed

.github/workflows/0-on-demand.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,9 @@ env:
5656
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
5757
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
5858

59+
# https://ge.apache.org
60+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
61+
5962
# (optional) you need to add as secrets an ngrok token and a password to debug a build on demand
6063
NGROK_DEBUG: ${{ inputs.enable_ngrok_debug }}
6164
NGROK_TOKEN: ${{ secrets.NGROK_TOKEN }}

.github/workflows/1-unit.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,9 @@ env:
5151
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
5252
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
5353

54+
# https://ge.apache.org
55+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
56+
5457
jobs:
5558
openwhisk:
5659
runs-on: ubuntu-22.04

.github/workflows/2-system.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49+
# https://ge.apache.org
50+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
51+
4952
jobs:
5053
openwhisk:
5154
runs-on: ubuntu-22.04

.github/workflows/3-multi-runtime.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49+
# https://ge.apache.org
50+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
51+
4952
jobs:
5053
openwhisk:
5154
runs-on: ubuntu-22.04

.github/workflows/4-standalone.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49+
# https://ge.apache.org
50+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
51+
4952
jobs:
5053
openwhisk:
5154
runs-on: ubuntu-22.04

.github/workflows/5-scheduler.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49+
# https://ge.apache.org
50+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
51+
4952
jobs:
5053
openwhisk:
5154
runs-on: ubuntu-22.04

.github/workflows/6-performance.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,9 @@ env:
4646
GH_BUILD: ${{ github.event_name }}-${{ github.sha }}
4747
GH_BRANCH: ${{ github.head_ref || github.ref_name }}
4848

49+
# https://ge.apache.org
50+
GRADLE_ENTERPRISE_ACCESS_KEY: ${{ secrets.GE_ACCESS_TOKEN }}
51+
4952
jobs:
5053
openwhisk:
5154
runs-on: ubuntu-22.04

0 commit comments

Comments
 (0)