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

[REQ] Sample with API Key as a credential #69

Open
kfeeley opened this issue Aug 31, 2022 · 3 comments
Open

[REQ] Sample with API Key as a credential #69

kfeeley opened this issue Aug 31, 2022 · 3 comments
Labels
enhancement New feature or request

Comments

@kfeeley
Copy link

kfeeley commented Aug 31, 2022

Is your request related to a workflow problem?

Getting started with using an API Key as a credential was tough. I was able to get things working by looking at the CLI parameters and the solution ended up being very simple.

Propose a solution

I can open a PR containing the sample YAML.

name: Checkmarx AST Scan
on:
  push:
    branches:
      - main

jobs:
  build:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout
        uses: actions/checkout@v2
      - name: Checkmarx AST CLI Action
        uses: checkmarx/ast-github-action@main #Github Action version
        with:
          base_uri: https://ast.checkmarx.net/
          cx_tenant: your_tenant
          additional_params: --apikey ${{ secrets.CX_API_KEY }}

Additional comments

This is not a change to the action itself, but just the addition of a sample, like the ones here: https://github.com/Checkmarx/ast-github-action/tree/main/sample-yml

@kfeeley kfeeley added the enhancement New feature or request label Aug 31, 2022
@kfeeley kfeeley mentioned this issue Aug 31, 2022
3 tasks
@pedrompflopes pedrompflopes reopened this Sep 2, 2022
@pedrompflopes
Copy link
Collaborator

@kfeeley We are reviewing your PR. Thanks for the collaboration.

@kfeeley
Copy link
Author

kfeeley commented Sep 6, 2022

Thanks. I could also help out in a solution where the API key is passed in as an "api_key" input parameter in the action metadata file if you all feel that is a better solution.

@lmf-ggal
Copy link

Why you've removed APIkey possibility? as i see in : https://checkmarx.com/resource/documents/en/34965-68653-utils.html#UUID-f7245425-72b9-9854-a60a-a9f37e0173d9_id_env-Usingtheenvcommand
It's possible to send EnvVar.

It's possible to add It ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants