Skip to content

Github Action to generate GitHub access tokens using Lambda function

License

Notifications You must be signed in to change notification settings

babbel/generate-github-access-tokens

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GitHub Action: babbel/generate-github-access-tokens

Generates a GitHub access token using a custom API endpoint (with SigV4 authentication) and assigns the GitHub access token to an environment variable.

Usage

    steps:
      - uses: aws-actions/configure-aws-credentials@v4
        with:
          role-to-assume: ${{ vars.AWS_IAM_ROLE_ARN }}
          aws-region: ${{ vars.AWS_REGION }}
      - uses: babbel/generate-github-access-tokens@v1
        with:
          invoke-url: ${{ vars.ACCESS_TOKEN_GENERATOR_INVOKE_URL }}
          region: ${{ vars.ACCESS_TOKEN_GENERATOR_REGION }}
          configuration-name: EXAMPLE_TOKEN

This will assign GitHub access token to the EXAMPLE_TOKEN environment variable.