Pynt on CI/CD
To setup pynt in your CI/CD pipeline you need the following steps:
- 1.Using Pynt CLI on your machine, run:
pynt pynt-id
(You will be asked to login on your first time running Pynt)

How to get your Pynt-ID
- 2.Copy your Pynt ID into a secret in your Ci/CD environment, for example in Github:

Add pynt-id to a Github secret
- 3.Add Pynt to you workflow, see following example of a job in a Github workflow that runs Pynt on our goat vulnerable application:
name: Example pynt yml
on:
workflow_dispatch:
inputs:
comment:
type: string
default: "API Security tests"
env:
PYNT_CREDENTIALS: ${{ secrets.YOURPYNTID }}
jobs:
api-security:
runs-on: ubuntu-latest
steps:
- name: install pynt cli
run: |
python3 -m pip install --upgrade pyntcli
- name: get goat collection
run: |
curl https://raw.githubusercontent.com/pynt-io/pynt/main/goat_functional_tests/goat.postman_collection.json -o goat.json
- name: run pynt with newman integration
run: |
pynt newman --collection goat.json --reporters results.json
Last modified 13d ago