Skip to content

aqua-github-actions/ga-aqua-login

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Repository files navigation

Aqua Login

Used to generate token for later use by other Aqua Actions

This github actions is inspired by gajira-login

Usage

An example workflow to login to an aqua instance:

on: push

name: Aqua Example

jobs:
  build:
    runs-on: ubuntu-latest
    name: Aqua Example
    steps:
    - name: Login
      id: login
      uses: aqua-github-actions/ga-aqua-login@1.0.1
      env: # secrets as env variables
        AQUA_BASE_URL: ${{ secrets.AQUA_BASE_URL }}
        AQUA_USERNAME: ${{ secrets.AQUA_USERNAME }}
        AQUA_PASSWORD: ${{ secrets.AQUA_PASSWORD }}
      with: # or as parameters
        aqua-base-url: ${{ secrets.AQUA_BASE_URL }}
        aqua-username: ${{ secrets.AQUA_USERNAME }}
        aqua-password: ${{ secrets.AQUA_PASSWORD }}
    - name: Generated bearer tokens
      run: echo "Token ${{ steps.login.outputs.token }}"

Action Spec:

Environment variables

Arguments