<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Prisma Cloud CI/CD run for Github action in Prisma Cloud Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-ci-cd-run-for-github-action/m-p/616793#M1349</link>
    <description>&lt;P&gt;I am trying to setup a Prisma Cloud CI/CD run integration with Github action to do security scanning and show results on Prisma Cloud.&lt;/P&gt;
&lt;P&gt;as per instruction. I have setup and API key. Followed the wizard, Connecdt Provider, code &amp;amp; build providers, chose GitHub Actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setup the GitHub Action with configuration described on the wizard. I have setup an environment secret for the github action as follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variable: BC_API_KEY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the value PRISMA_ACCESS_KEY::PRISMA_SECRET_KEY&lt;/P&gt;
&lt;P&gt;I have replaced the&amp;nbsp;PRISMA_ACCESS_KEY with access key ID of the API key and&amp;nbsp;PRISMA_SECRET_KEY with the&amp;nbsp;Secret Key of the API key&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so my variable on Github action is like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BC_API_KEY&lt;/P&gt;
&lt;P&gt;Value: 4cxxxxxx-4xxxxxxx-7xxxxxxx:: 23xxxxxxxxx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;github actions runs just fine but nothing appears on Prisma Cloud under CiCD Runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea? The github action yaml file pretty standard one as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;name: Prisma Cloud IaC Scan&lt;/P&gt;
&lt;P&gt;on:&lt;BR /&gt;push:&lt;BR /&gt;branches: [ "main" ]&lt;BR /&gt;pull_request:&lt;BR /&gt;# The branches below must be a subset of the branches above&lt;BR /&gt;branches: [ "main" ]&lt;BR /&gt;schedule:&lt;BR /&gt;- cron: '16 19 * * 0'&lt;/P&gt;
&lt;P&gt;permissions:&lt;BR /&gt;contents: read&lt;/P&gt;
&lt;P&gt;jobs:&lt;BR /&gt;prisma_cloud_iac_scan:&lt;BR /&gt;permissions:&lt;BR /&gt;contents: read # for actions/checkout to fetch code&lt;BR /&gt;security-events: write # for github/codeql-action/upload-sarif to upload SARIF results&lt;BR /&gt;actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status&lt;BR /&gt;runs-on: ubuntu-latest&lt;BR /&gt;name: Run Prisma Cloud IaC Scan to check&lt;BR /&gt;steps:&lt;BR /&gt;- name: Checkout repo&lt;BR /&gt;uses: actions/checkout@v2&lt;BR /&gt;- name: Run Prisma Cloud &lt;BR /&gt;id: prisma-cloud&lt;BR /&gt;uses: bridgecrewio/checkov-action@master&lt;BR /&gt;env:&lt;BR /&gt;PRISMA_API_URL: &lt;A href="https://api.eu.prismacloud.io" target="_blank"&gt;https://api.eu.prismacloud.io&lt;/A&gt;&lt;BR /&gt;with:&lt;BR /&gt;api-key: ${{ secrets.BC_API_KEY }}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 11 Nov 2024 17:27:19 GMT</pubDate>
    <dc:creator>D.Tiritoglu</dc:creator>
    <dc:date>2024-11-11T17:27:19Z</dc:date>
    <item>
      <title>Prisma Cloud CI/CD run for Github action</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-ci-cd-run-for-github-action/m-p/616793#M1349</link>
      <description>&lt;P&gt;I am trying to setup a Prisma Cloud CI/CD run integration with Github action to do security scanning and show results on Prisma Cloud.&lt;/P&gt;
&lt;P&gt;as per instruction. I have setup and API key. Followed the wizard, Connecdt Provider, code &amp;amp; build providers, chose GitHub Actions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Setup the GitHub Action with configuration described on the wizard. I have setup an environment secret for the github action as follow.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Variable: BC_API_KEY&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For the value PRISMA_ACCESS_KEY::PRISMA_SECRET_KEY&lt;/P&gt;
&lt;P&gt;I have replaced the&amp;nbsp;PRISMA_ACCESS_KEY with access key ID of the API key and&amp;nbsp;PRISMA_SECRET_KEY with the&amp;nbsp;Secret Key of the API key&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;so my variable on Github action is like&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;BC_API_KEY&lt;/P&gt;
&lt;P&gt;Value: 4cxxxxxx-4xxxxxxx-7xxxxxxx:: 23xxxxxxxxx&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;github actions runs just fine but nothing appears on Prisma Cloud under CiCD Runs.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any idea? The github action yaml file pretty standard one as below.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;name: Prisma Cloud IaC Scan&lt;/P&gt;
&lt;P&gt;on:&lt;BR /&gt;push:&lt;BR /&gt;branches: [ "main" ]&lt;BR /&gt;pull_request:&lt;BR /&gt;# The branches below must be a subset of the branches above&lt;BR /&gt;branches: [ "main" ]&lt;BR /&gt;schedule:&lt;BR /&gt;- cron: '16 19 * * 0'&lt;/P&gt;
&lt;P&gt;permissions:&lt;BR /&gt;contents: read&lt;/P&gt;
&lt;P&gt;jobs:&lt;BR /&gt;prisma_cloud_iac_scan:&lt;BR /&gt;permissions:&lt;BR /&gt;contents: read # for actions/checkout to fetch code&lt;BR /&gt;security-events: write # for github/codeql-action/upload-sarif to upload SARIF results&lt;BR /&gt;actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status&lt;BR /&gt;runs-on: ubuntu-latest&lt;BR /&gt;name: Run Prisma Cloud IaC Scan to check&lt;BR /&gt;steps:&lt;BR /&gt;- name: Checkout repo&lt;BR /&gt;uses: actions/checkout@v2&lt;BR /&gt;- name: Run Prisma Cloud &lt;BR /&gt;id: prisma-cloud&lt;BR /&gt;uses: bridgecrewio/checkov-action@master&lt;BR /&gt;env:&lt;BR /&gt;PRISMA_API_URL: &lt;A href="https://api.eu.prismacloud.io" target="_blank"&gt;https://api.eu.prismacloud.io&lt;/A&gt;&lt;BR /&gt;with:&lt;BR /&gt;api-key: ${{ secrets.BC_API_KEY }}&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 11 Nov 2024 17:27:19 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-ci-cd-run-for-github-action/m-p/616793#M1349</guid>
      <dc:creator>D.Tiritoglu</dc:creator>
      <dc:date>2024-11-11T17:27:19Z</dc:date>
    </item>
    <item>
      <title>Re: Prisma Cloud CI/CD run for Github action</title>
      <link>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-ci-cd-run-for-github-action/m-p/617552#M1355</link>
      <description>&lt;P class="text-default dark:text-dark-bg text-sm"&gt;To troubleshoot the missing Prisma Cloud CI/CD scan results despite a successful GitHub Actions workflow, please verify the following:&lt;/P&gt;
&lt;UL class="ml-4 list-disc"&gt;
&lt;LI&gt;&lt;STRONG&gt;Prisma Cloud Access Key Configuration:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ensure your Prisma Cloud access key is correctly configured as a GitHub secret named
&lt;DIV class="relative rounded-md bg-gray-200 p-8 text-sm dark:bg-blue-steel-900 overflow-auto"&gt;&lt;CODE class="whitespace-break-spaces"&gt;PRISMA_ACCESS_KEY&lt;/CODE&gt;&lt;/DIV&gt;
and &lt;CODE class="whitespace-break-spaces"&gt;PRISMA_SECRET_KEY&lt;/CODE&gt;&lt;BR /&gt;containing the Key ID and Secret, respectively. The format should be
&lt;DIV class="relative rounded-md bg-gray-200 p-8 text-sm dark:bg-blue-steel-900 overflow-auto"&gt;&lt;CODE class="whitespace-break-spaces"&gt;PRISMA_ACCESS_KEY::PRISMA_SECRET_KEY&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Checkov Action Configuration:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Double-check that your
&lt;DIV class="relative rounded-md bg-gray-200 p-8 text-sm dark:bg-blue-steel-900 overflow-auto"&gt;&lt;CODE class="whitespace-break-spaces"&gt;checkov-action&lt;/CODE&gt;&lt;/DIV&gt;
within the GitHub Actions workflow correctly uses the environment secret. The &lt;CODE class="whitespace-break-spaces"&gt;api-key&amp;nbsp;&lt;/CODE&gt;parameter should reference the secret using the syntax &lt;CODE class="whitespace-break-spaces"&gt;${{ secrets.PRISMA_ACCESS_KEY }}&lt;/CODE&gt;. Also, ensure the &lt;CODE class="whitespace-break-spaces"&gt;PRISMA_API_URL&amp;nbsp;&lt;/CODE&gt;is correctly set to the appropriate URL for your Prisma Cloud environment (e.g.,
&lt;DIV class="relative rounded-md bg-gray-200 p-8 text-sm dark:bg-blue-steel-900 overflow-auto"&gt;&lt;CODE class="whitespace-break-spaces"&gt;&lt;A href="https://api2.prismacloud.io" target="_blank"&gt;https://api2.prismacloud.io&lt;/A&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Allow List Configuration:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Verify that the Prisma Cloud IP addresses and hostname for Application Security are added to your GitHub Actions allow list to enable access to the Prisma Cloud console.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Administrator Permissions:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Confirm that the Prisma user associated with the access key has Administrator permissions in Prisma Cloud.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;GitHub Actions Workflow Trigger:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Ensure your GitHub Actions workflow is correctly triggered and runs successfully. Check the workflow logs for any errors.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Prisma Cloud Console Verification:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;After running the workflow, wait up to three minutes for the status to update in the Prisma Cloud console. Navigate to&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;Home &amp;gt; Settings &amp;gt; CI/CD Runs&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;to check for your integrated GitHub Actions repositories. If the repository is not listed, check the Prisma Cloud logs for any errors.&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Checkov Action Version:&lt;/STRONG&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;Use the latest version of the &lt;CODE class="whitespace-break-spaces"&gt;bridgecrewio/checkov-action&lt;/CODE&gt;to ensure compatibility and access to the latest features and bug fixes.&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="text-default dark:text-dark-bg text-sm"&gt;If the issue persists after verifying these steps, please contact Palo Alto Networks support for further assistance.&lt;/P&gt;</description>
      <pubDate>Wed, 13 Nov 2024 23:29:40 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/prisma-cloud-discussions/prisma-cloud-ci-cd-run-for-github-action/m-p/617552#M1355</guid>
      <dc:creator>LMegrelis</dc:creator>
      <dc:date>2024-11-13T23:29:40Z</dc:date>
    </item>
  </channel>
</rss>

