Skip to content

Commit

Permalink
Update long running test workflow to use GH token for terraform priva…
Browse files Browse the repository at this point in the history
…te registry (radius-project#7545)

# Description

Long-running tests are failing during the Terraform private registry
step. This PR updates the long running test workflow to use a GH token
to authenticate to the Terraform private registry

## Type of change

<!--

Please select **one** of the following options that describes your
change and delete the others. Clearly identifying the type of change you
are making will help us review your PR faster, and is used in authoring
release notes.

If you are making a bug fix or functionality change to Radius and do not
have an associated issue link please create one now.

-->

- This pull request is a minor refactor, code cleanup, test improvement,
or other maintenance task and doesn't change the functionality of Radius
(issue link optional).

<!--

Please update the following to link the associated issue. This is
required for some kinds of changes (see above).

-->

Fixes: #issue_number

Signed-off-by: sk593 <[email protected]>
  • Loading branch information
sk593 authored Apr 26, 2024
1 parent 210e7fa commit a7bb757
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions .github/workflows/long-running-azure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,9 @@ env:
# The valid radius build time window in seconds to rebuild radius. 24 hours = 24 * 60 * 60 = 86400
VALID_RADIUS_BUILD_WINDOW: 86400

# The functional test GitHub app id
FUNCTIONAL_TEST_APP_ID: 425843

# The AKS cluster name
AKS_CLUSTER_NAME: "radlrtest00-aks"
# The resource group for AKS_CLUSTER_NAME resource.
Expand Down Expand Up @@ -109,6 +112,12 @@ jobs:
CHECKOUT_REF: ${{ steps.gen-id.outputs.CHECKOUT_REF }}
RAD_CLI_ARTIFACT_NAME: ${{ steps.gen-id.outputs.RAD_CLI_ARTIFACT_NAME }}
steps:
- name: Get GitHub app token
uses: tibdex/github-app-token@v2
id: get_installation_token
with:
app_id: ${{ env.FUNCTIONAL_TEST_APP_ID }}
private_key: ${{ secrets.FUNCTIONAL_TEST_APP_PRIVATE_KEY }}
- name: Restore the latest cached binaries
uses: actions/cache/restore@v4
with:
Expand Down Expand Up @@ -306,6 +315,7 @@ jobs:
AZURE_TEST_RESOURCE_GROUP: radtest-${{ needs.build.outputs.UNIQUE_ID }}-e2e-all
RAD_CLI_ARTIFACT_NAME: ${{ needs.build.outputs.RAD_CLI_ARTIFACT_NAME }}
BICEP_RECIPE_TAG_VERSION: ${{ needs.build.outputs.REL_VERSION }}
GH_TOKEN: ${{ steps.get_installation_token.outputs.token }}
steps:
- name: Checkout
uses: actions/checkout@v4
Expand Down

0 comments on commit a7bb757

Please sign in to comment.