Skip to content

CAE-3916: Set Prisma Cloud scan authentication to username/password#1862

Open
jmcerda-epa wants to merge 1 commit into
developmentfrom
issue/CAE-3916
Open

CAE-3916: Set Prisma Cloud scan authentication to username/password#1862
jmcerda-epa wants to merge 1 commit into
developmentfrom
issue/CAE-3916

Conversation

@jmcerda-epa
Copy link
Copy Markdown
Collaborator

The Prisma Cloud image scans (Drupal, Nginx, Drush) stopped producing results after the authentication method was changed from API-based username/password authentication to a pre-provisioned PRISMA_TOKEN CI variable. This caused twistcli downloads and scans to silently fail (allow_failure: true masked the errors).

This PR makes all three Prisma scan jobs to use the PRISMA_CI_USERNAME / PRISMA_CI_PASSWORD credentials, which are already configured and working. Each job now:
• Authenticates via the Prisma Cloud /api/v32.01/authenticate endpoint to obtain a bearer token
• Downloads twistcli using that token
• Scans images using --user / --password flags

Copy link
Copy Markdown
Collaborator

@ryanletulle ryanletulle left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

You convinced me

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants