Publish a JFrog CLI Job Summary

Publish a JFrog CLI job summary that shows build, package, and scan results.

Read JFrog build, package, and scan results from the GitHub Actions job page. After jf rt ping succeeds, the jfrog/setup-jfrog-cli post step generates summary Markdown and writes it to the GitHub job summary.

For more information, see JFrog and GitHub Feature Availability.

Before You Begin

  • JFrog CLI 2.66.0 or newer.
  • Set JF_URL to your JFrog Platform URL.
  • A workflow that authenticates to the JFrog Platform. Use OpenID Connect (OIDC) when you don't need a long-lived token. For more information, see OIDC Authentication.
  • Commands that collect the data you expect to see, such as a package upload, jf rt build-publish, or a JFrog scan command.

The jfrog/setup-jfrog-cli action writes the job summary unless you set disable-job-summary: true.

Configure the Workflow

Add the jfrog/setup-jfrog-cli action, then publish or scan so its post step can write the job summary.

To configure the workflow:

  1. In the workflow, add the jfrog/setup-jfrog-cli@v5 step:

    - uses: jfrog/setup-jfrog-cli@v5
      env:
        JF_URL: ${{ vars.JF_URL }}
        JF_PROJECT: ${{ vars.JF_PROJECT }}
      with:
        oidc-provider-name: <OIDC_PROVIDER_NAME>

    Where:

    • <OIDC_PROVIDER_NAME>: The OIDC provider name configured in JFrog
  2. Publish or scan with the JFrog CLI in later steps. Examples:

    • Upload a package with jf rt upload or the jf command for your package manager.
    • Publish collected build info with jf rt build-publish. If collected build info remains unpublished, the v5 action publishes it at the end of the workflow unless disable-auto-build-publish is true.
    • Include scan results by running the JFrog scan command that applies to the artifact or build.

The post step first verifies the JFrog Artifactory connection with jf rt ping, then runs jf generate-summary-markdown. It reads markdown.md from the CLI command-summary directory and writes it to the GitHub job summary. It skips the summary when the ping fails or the file is absent.

Verify the Result

After the job completes, the summary links to the related JFrog build and package results.

To verify the result:

  • Open the completed job and expand JFrog Job Summary.

The summary links to package details on the JFrog Platform URL recorded for the job. The sections that appear depend on the commands that ran. For example, published build info appears under Published JFrog Build Info and Modules published to Artifactory by this workflow, with security violation and issue columns when a scan ran.

Troubleshoot

Use the following table when the job summary is missing or incomplete.

SymptomWhat to Check
The job has no JFrog summary.Confirm jf rt ping succeeds, the CLI version is 2.66.0 or newer, disable-job-summary isn't true, and a supported command produced summary data.
Build Info is missing.Confirm the workflow collected build info and either ran jf rt build-publish or left automatic publication enabled.
Scan findings are missing.Confirm a scan command ran and its command summary was written before the post step.

Related Topics


Did this page help you?