Skip to content

GitHub Action to add a comment to a defect on aqua cloud instance

Notifications You must be signed in to change notification settings

aqua-github-actions/ga-aqua-comment

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 Defect Comment

Add a comment / note to an aqua defect

This github actions is inspired by gajira-comment

ℹ️
This GitHub Action requires Aqua Login Action

Usage

An example workflow to add a comment to a defect:

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@v1.0.1
      with:
        aqua-base-url: ${{ secrets.AQUA_BASE_URL }}
        aqua-username: ${{ secrets.AQUA_USERNAME }}
        aqua-password: ${{ secrets.AQUA_PASSWORD }}
    - name: Add a comment
      uses: aqua-github-actions/ga-aqua-comment@v0.0.1
      with:
        aqua-base-url: ${{ secrets.AQUA_BASE_URL }}
        aqua-token: ${{ steps.login.outputs.token }}
        defect: DF001268
        comment: new
    - name: Logout
      uses: aqua-github-actions/ga-aqua-logout@v1.0.0
      with:
        aqua-base-url: ${{ secrets.AQUA_BASE_URL }}
        aqua-token: ${{ steps.login.outputs.token }}

Action Spec:

Environment variables

Arguments

  • aqua-base-url - URL of aqua instance. Example https://aqua-saas2.andagon.com/aquaWebNG

  • aqua-token - Bearer token for authentication against aqua cloud instance.

  • defect - Id of defect to update

  • comment - Name of transition to update to e.g. (new, solved, reopened, paused, closed, in processing)