Skip to content

eli-759 removing PAT token dependency#648

Open
eddalmond1 wants to merge 4 commits intomainfrom
feature/eja-eli-759-removing-reliance-on-PAT-for-regression-tests
Open

eli-759 removing PAT token dependency#648
eddalmond1 wants to merge 4 commits intomainfrom
feature/eja-eli-759-removing-reliance-on-PAT-for-regression-tests

Conversation

@eddalmond1
Copy link
Copy Markdown
Collaborator

Description

Switching out the PAT token usage for a workflow calling approach for regression tests

Context

PAT tokens are linked to users - we don't want this as it results in failures when people leave projects. The alternative approach is to set up permission for this repo to call the regression test repo

Type of changes

  • Refactoring (non-breaking change)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would change existing functionality)
  • Bug fix (non-breaking change which fixes an issue)

Checklist

  • I am familiar with the contributing guidelines
  • I have followed the code style of the project
  • I have added tests to cover my changes
  • I have updated the documentation accordingly
  • This PR is a result of pair or mob programming

Sensitive Information Declaration

To ensure the utmost confidentiality and protect your and others privacy, we kindly ask you to NOT including PII (Personal Identifiable Information) / PID (Personal Identifiable Data) or any other sensitive data in this PR (Pull Request) and the codebase changes. We will remove any PR that do contain any sensitive information. We really appreciate your cooperation in this matter.

  • I confirm that neither PII/PID nor sensitive data are included in this PR and the codebase changes.

@eddalmond1 eddalmond1 requested a review from a team as a code owner April 21, 2026 14:17
Comment thread .github/workflows/regression-tests.yml Outdated
--env="$TARGET_ENVIRONMENT" \
--token="$TESTS_TOKEN" \
--regression_test_repo_tag "$VERSION_NUMBER"
if: ${{ (inputs.ENVIRONMENT != 'prod') && (inputs.ENVIRONMENT != 'ref') }}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I understand why not prod but why not ref?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ohh wait are you just making sure people dont put ref when they mean preprod?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

good spot, amended

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

actually, i copied the 'ref' reference from the old code, it looks to be 'defensive' but we don't actually pass ref at any point as the environment. So removing the ref/preprod entirely

TOEL2
TOEL2 previously approved these changes Apr 22, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants