Terrateam Workflow #2
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
########################################################################## | |
# .github/workflows/terrateam.yml | |
########################################################################## | |
# DO NOT MODIFY | |
# | |
# THIS FILE SHOULD LIVE IN .github/workflows/terrateam.yml | |
# | |
# Looking for the Terrateam configuration file? .terrateam/config.yml. | |
# | |
# See https://terrateam.io/docs/configuration for details | |
########################################################################## | |
name: 'Terrateam Workflow' | |
on: | |
workflow_dispatch: | |
inputs: | |
# The work-token and api-base-url are automatically passed in by the Terrateam backend | |
work-token: | |
description: 'Work Token' | |
required: true | |
api-base-url: | |
description: 'API Base URL' | |
jobs: | |
terrateam: | |
permissions: # Required to pass credentials to the Terrateam action | |
id-token: write | |
contents: read | |
runs-on: ubuntu-latest | |
timeout-minutes: 1440 | |
name: Terrateam Action | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Run Terrateam Action | |
id: terrateam | |
uses: terrateamio/action@v1 # Do not replace with a custom image. Doing so may cause Terrateam to not operate as intended. | |
with: | |
work-token: '${{ github.event.inputs.work-token }}' | |
api-base-url: '${{ github.event.inputs.api-base-url }}' | |
env: | |
SECRETS_CONTEXT: ${{ toJson(secrets) }} |