Configure Environment Variables

Perform the following steps to configure environment variables on the GitLab Console:

  1. Go to Settings> CI/CD > Variables on the GitLab console.

    repository_variables.png

  2. Provide the required details for environment variables.

    To create a user-level client, see Set up Token-based Authentication from UI.

    Variable

    Description

    QUALYS_URL

    Qualys platform URL. To learn about your Qualys platform URL, click here.

    AUTH_TYPE Use this variable to specify the authentication method. BASIC, OAUTH, or IDP are supported.

    QUALYS_USERNAME

    Qualys username

    QUALYS_PASSWORD

    Qualys password

    QULAYS_CLIENTID

    OAuth client ID

    QULAYS_CLIENTSECRET

    OAuth client secret. For IDP authentication, use this variable to specify the client secret configured for your Identity Provider.

    TOKEN_URL

    Required for IDP authentication. Specify the URL of your Identity Provider (IDP) token endpoint. The pipeline sends an authentication request to this endpoint to obtain an access token.

    SCOPE

    Optional for IDP authentication. Specify the scope to request from your Identity Provider. This field is optional unless your IDP configuration requires it (for example, Okta requires this field). If a required scope is missing or invalid, authentication fails.

    AUDIENCE

    Optional for IDP authentication. Specify the audience value configured for your Identity Provider. This value must match the audience configured in QAS. If the values do not match, authentication fails.

    BREAK_ON_ERROR

    Set this variable as false if you do not want the pipeline to fail on an error. Else, set this as true or do not add this variable.

Next step

Configure Pipeline Script