github.com/jfrog/jfrog-cli-core/v2@v2.51.0/.github/workflows/frogbot-scan-pull-request.yml (about)

     1  name: "Frogbot Scan Pull Request"
     2  on:
     3    pull_request_target:
     4      types: [ opened, synchronize ]
     5  permissions:
     6    pull-requests: write
     7    contents: read
     8  jobs:
     9    scan-pull-request:
    10      runs-on: ubuntu-latest
    11      # A pull request needs to be approved before Frogbot scans it. Any GitHub user who is associated with the
    12      # "frogbot" GitHub environment can approve the pull request to be scanned.
    13      environment: frogbot
    14      steps:
    15        - uses: jfrog/frogbot@v2
    16          env:
    17            JFROG_CLI_LOG_LEVEL: "DEBUG"
    18            # [Mandatory]
    19            # JFrog platform URL (This functionality requires version 3.29.0 or above of Xray)
    20            JF_URL: ${{ secrets.FROGBOT_URL }}
    21  
    22            # [Mandatory if JF_USER and JF_PASSWORD are not provided]
    23            # JFrog access token with 'read' permissions on Xray service
    24            JF_ACCESS_TOKEN: ${{ secrets.FROGBOT_ACCESS_TOKEN }}
    25  
    26            # [Mandatory]
    27            # The GitHub token is automatically generated for the job
    28            JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
    29  
    30            # [Optional, default: https://api.github.com]
    31            # API endpoint to GitHub
    32            # JF_GIT_API_ENDPOINT: https://github.example.com
    33  
    34            # [Optional]
    35            # By default, the Frogbot workflows download the Frogbot executable as well as other tools
    36            # needed from https://releases.jfrog.io
    37            # If the machine that runs Frogbot has no access to the internet, follow these steps to allow the
    38            # executable to be downloaded from an Artifactory instance, which the machine has access to:
    39            #
    40            # 1. Login to the Artifactory UI, with a user who has admin credentials.
    41            # 2. Create a Remote Repository with the following properties set.
    42            #    Under the 'Basic' tab:
    43            #       Package Type: Generic
    44            #       URL: https://releases.jfrog.io
    45            #    Under the 'Advanced' tab:
    46            #       Uncheck the 'Store Artifacts Locally' option
    47            # 3. Set the value of the 'JF_RELEASES_REPO' variable with the Repository Key you created.
    48            # JF_RELEASES_REPO: ""
    49  
    50            # [Optional]
    51            # Configure the SMTP server to enable Frogbot to send emails with detected secrets in pull request scans.
    52            # SMTP server URL including should the relevant port: (Example: smtp.server.com:8080)
    53            JF_SMTP_SERVER: ${{ secrets.JF_SMTP_SERVER }}
    54  
    55            # [Mandatory if JF_SMTP_SERVER is set]
    56            # The username required for authenticating with the SMTP server.
    57            JF_SMTP_USER: ${{ secrets.JF_SMTP_USER }}
    58  
    59            # [Mandatory if JF_SMTP_SERVER is set]
    60            # The password associated with the username required for authentication with the SMTP server.
    61            JF_SMTP_PASSWORD: ${{ secrets.JF_SMTP_PASSWORD }}
    62  
    63            # [Optional]
    64            # List of comma separated email addresses to receive email notifications about secrets
    65            # detected during pull request scanning. The notification is also sent to the email set
    66            # in the committer git profile regardless of whether this variable is set or not.
    67            JF_EMAIL_RECEIVERS: "eco-system@jfrog.com"
    68  
    69            ##########################################################################
    70            ##   If your project uses a 'frogbot-config.yml' file, you can define   ##
    71            ##   the following variables inside the file, instead of here.          ##
    72            ##########################################################################
    73  
    74            # [Mandatory if the two conditions below are met]
    75            # 1. The project uses yarn 2, NuGet or .NET Core to download its dependencies
    76            # 2. The `installCommand` variable isn't set in your frogbot-config.yml file.
    77            #
    78            # The command that installs the project dependencies (e.g "nuget restore")
    79            # JF_INSTALL_DEPS_CMD: ""
    80  
    81            # [Optional, default: "."]
    82            # Relative path to the root of the project in the Git repository
    83            # JF_WORKING_DIR: path/to/project/dir
    84  
    85            # [Optional]
    86            # Xray Watches. Learn more about them here: https://www.jfrog.com/confluence/display/JFROG/Configuring+Xray+Watches
    87            # JF_WATCHES: <watch-1>,<watch-2>...<watch-n>
    88  
    89            # [Optional]
    90            # JFrog project. Learn more about it here: https://www.jfrog.com/confluence/display/JFROG/Projects
    91            # JF_PROJECT: <project-key>
    92  
    93            # [Optional, default: "FALSE"]
    94            # Displays all existing vulnerabilities, including the ones that were added by the pull request.
    95            # JF_INCLUDE_ALL_VULNERABILITIES: "TRUE"
    96  
    97            # [Optional, default: "TRUE"]
    98            # Fails the Frogbot task if any security issue is found.
    99            # JF_FAIL: "FALSE"
   100  
   101            # [Optional]
   102            # Frogbot will download the project dependencies if they're not cached locally. To download the
   103            # dependencies from a virtual repository in Artifactory, set the name of the repository. There's no
   104            # need to set this value, if it is set in the frogbot-config.yml file.
   105            # JF_DEPS_REPO: ""
   106  
   107            # [Optional, Default: "FALSE"]
   108            # If TRUE, Frogbot creates a single pull request with all the fixes.
   109            # If false, Frogbot creates a separate pull request for each fix.
   110            # JF_GIT_AGGREGATE_FIXES: "FALSE"
   111  
   112            # [Optional, Default: "FALSE"]
   113            # Handle vulnerabilities with fix versions only
   114            # JF_FIXABLE_ONLY: "TRUE"
   115  
   116            # [Optional]
   117            # Set the minimum severity for vulnerabilities that should be fixed and commented on in pull requests
   118            # The following values are accepted: Low, Medium, High or Critical
   119            # JF_MIN_SEVERITY: ""