diff --git a/.github/workflows/sdk_generation.yaml b/.github/workflows/sdk_generation.yaml index 52cfae6..2f579bc 100644 --- a/.github/workflows/sdk_generation.yaml +++ b/.github/workflows/sdk_generation.yaml @@ -17,21 +17,33 @@ on: - cron: 0 0 * * * jobs: - gather-secrets: - uses: ./.github/workflows/secrets_retrieval.yaml - with: - environment: dev-main - - speakeasy_generate: - needs: gather-secrets + generate: runs-on: ubuntu-latest + timeout-minutes: 10 + concurrency: + group: php-sdk-check steps: - - name: Generate SDK - uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 + - name: Authenticate with AWS + uses: goshippo/shippo-action-workflows/.github/actions/aws_auth@v1.1.0 + with: + environment: dev-main + oidc-name: shippo-php-sdk-pipeline + login-to-ecr: false + + - name: Get Speakeasy Secrets Manager + uses: aws-actions/aws-secretsmanager-get-secrets@v2 with: - force: ${{ github.event.inputs.force }} - mode: pr - speakeasy_version: latest - env: - github_access_token: ${{ secrets.GITHUB_TOKEN }} - speakeasy_api_key: ${{ jobs.gather-secrets.outputs.get-secrets.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} # Reference the output directly + secret-ids: | + dev-main-speakeasy-api-key + name-transformation: uppercase + parse-json-secrets: true + +# - name: Generate SDK +# uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15 +# with: +# force: ${{ github.event.inputs.force }} +# mode: pr +# speakeasy_version: latest +# env: +# github_access_token: ${{ secrets.GITHUB_TOKEN }} +# speakeasy_api_key: ${{ jobs.gather-secrets.outputs.get-secrets.DEV_MAIN_SPEAKEASY_API_KEY_PHP_API_KEY }} # Reference the output directly