Support OIDC file token authentication #1392
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: acceptance-test | |
on: | |
repository_dispatch: | |
types: | |
- run-acceptance-tests-command | |
pull_request: | |
branches: | |
- master | |
- main | |
- v2.0-pre | |
paths-ignore: | |
- CHANGELOG.md | |
workflow_dispatch: | |
inputs: | |
short_test: | |
type: boolean | |
description: Skip longer running tests | |
default: false | |
version: | |
type: string | |
description: Override the version when building | |
env: | |
GITHUB_TOKEN: ${{ secrets.PULUMI_BOT_TOKEN }} | |
jobs: | |
comment-notification: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Create URL to the run output | |
id: vars | |
run: echo "run-url=https://github.com/$GITHUB_REPOSITORY/actions/runs/$GITHUB_RUN_ID" >> "$GITHUB_OUTPUT" | |
- name: Update with Result | |
uses: peter-evans/create-or-update-comment@v1 | |
with: | |
token: ${{ secrets.PULUMI_BOT_TOKEN }} | |
repository: ${{ github.event.client_payload.github.payload.repository.full_name }} | |
issue-number: ${{ github.event.client_payload.github.payload.issue.number }} | |
body: "Please view the PR build: ${{ steps.vars.outputs.run-url }}" | |
if: github.event_name == 'repository_dispatch' | |
version: | |
if: github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository | |
uses: ./.github/workflows/version.yml | |
secrets: inherit | |
build_test: | |
if: github.event_name == 'repository_dispatch' || github.event_name == 'workflow_dispatch' || github.event.pull_request.head.repo.full_name == github.repository | |
uses: ./.github/workflows/build-test.yml | |
needs: version | |
with: | |
ref: ${{ github.ref }} | |
version: ${{ inputs.version || needs.version.outputs.version }} | |
short_test: ${{ (github.event_name == 'pull_request' || inputs.short_test) || false }} | |
retention_days: 30 | |
secrets: inherit |