Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Authenticate user for GitHub CI Actions #1769

Conversation

TerrenceMcGuinness-NOAA
Copy link
Collaborator

@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA commented Jul 28, 2023

Description

Fixes #1751

Adding a separate repo for the GitHub Actions Workflow CI Pipeline https://github.com/NOAA-EMC/ci-workflows This gives us an authentication step on a per user bases stored in an off repo privat text file. The main pipeline file in the new ci-workflows repo is referenced within the global-workflow GitHub workflow file with the line: uses: TerrenceMcGuinness-NOAA/CI-workflows/.github/workflows/orion.yaml@main This will be moved to EMC/CI-workflows when the runner is no longer running from TerrenceMcGuinness-NOAA account.

Type of change

Please delete options that are not relevant.

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • This change requires a documentation update

How Has This Been Tested?

  • Clone and Build tests on WCOSS Dell P3
  • Cycled test on Orion
  • Forecast-only test on Hera

Checklist

  • My code follows the style guidelines of this project
  • I have performed a self-review of my own code
  • I have commented my code, particularly in hard-to-understand areas
  • My changes need updates to the documentation. I have made corresponding changes to the documentation
  • My changes generate no new warnings
  • New and existing tests pass with my changes
  • Any dependent changes have been merged and published

@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA added the CI/CD Issue related to CI/CD label Jul 28, 2023
@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA marked this pull request as draft July 31, 2023 16:12
moved orion.yaml to github workflows
add check for PR label to auth
Running authenticator jump from my own repos for dev perps
take out word discover
renamed main pipline for orion in ci-workflow to mach calling use in global
@aerorahul aerorahul marked this pull request as ready for review September 7, 2023 17:31
@aerorahul
Copy link
Contributor

This was used as a proof of concept for demonstrating that one can use a whitelist to authenticate permitted users to launch CI with self-hosted runner.

This will be picked up again at a later time when RHDPCS finishes reviewing the open request to allow self-hosted Github runners on RDHPCS platforms.

Closing.

@aerorahul aerorahul closed this Sep 7, 2023
@TerrenceMcGuinness-NOAA TerrenceMcGuinness-NOAA deleted the auth_pipeline branch February 12, 2024 15:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI/CD Issue related to CI/CD
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add authentication step in Actions CI Pipeline using github.actor
3 participants