Skip to content
This repository was archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
using oidc as e2e testing authentication method
Browse files Browse the repository at this point in the history
  • Loading branch information
lonegunmanb committed Sep 23, 2024
1 parent 0b38eee commit 3c7f301
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/acc-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,22 @@ on:
- '**/go.mod'

jobs:
prepr-check:
uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@oidc
check:
runs-on: ubuntu-latest
steps:
- name: Checking for Fork
shell: pwsh
run: |
$isFork = "${{ github.event.pull_request.head.repo.fork }}"
if($isFork -eq "true") {
echo "### WARNING: This workflow is disabled for forked repositories. Please follow the [release branch process](https://azure.github.io/Azure-Verified-Modules/contributing/terraform/terraform-contribution-flow/#5-create-a-pull-request-to-the-upstream-repository) if end to end tests are required." >> $env:GITHUB_STEP_SUMMARY
}
run-e2e-tests:
if: github.event.pull_request.head.repo.fork == false
uses: Azure/tfmod-scaffold/.github/workflows/tfvm_e2e.yaml@oidc
name: end to end
secrets: inherit
permissions:
id-token: write
contents: read

0 comments on commit 3c7f301

Please sign in to comment.