Skip to content

[Bug] Preview deployment workflow cannot succeed for forked pull requests #169

@moeboua-cloud

Description

@moeboua-cloud

Describe the bug
The UI Development Kit AWS deployment workflow runs on every pull_request, but the job depends on AWS credentials and multiple repository secrets (JWT_SECRET, TENANT_URL, CLIENT_ID, CLIENT_SECRET, REDIRECT_URI, OAUTH_SCOPES, AWS_ROLE_ARN).

Evidence
File: .github/workflows/aws-deploy.yml
The workflow is triggered by:

on:
  pull_request:
    branches:
      - main

The deploy and cleanup jobs use AWS credential configuration and several secrets.* values.

GitHub's documentation says that, with the exception of GITHUB_TOKEN, secrets are not passed to workflows triggered from forked repositories.

Expected behavior
Either:

  • forked pull requests should be excluded from the preview deployment path, or
  • the workflow should be split so contributor-safe validation runs separately from privileged deployment.

Actual behavior
The preview deployment workflow is configured to run in PR contexts where the required secrets are not

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions