From e31ff7edc6fb7562c51b41c364e7f137dcc2ad1f Mon Sep 17 00:00:00 2001 From: dearchap Date: Tue, 20 Jun 2023 09:30:05 -0400 Subject: [PATCH] Create frogbot-scan-and-fix.yml --- .github/workflows/frogbot-scan-and-fix.yml | 45 ++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/frogbot-scan-and-fix.yml diff --git a/.github/workflows/frogbot-scan-and-fix.yml b/.github/workflows/frogbot-scan-and-fix.yml new file mode 100644 index 0000000000..ece7c2ac8f --- /dev/null +++ b/.github/workflows/frogbot-scan-and-fix.yml @@ -0,0 +1,45 @@ +name: "Frogbot Scan and Fix" +on: + push: + # Creating fix pull requests will be triggered by any push to one of the these branches. + # You can add or replace to any branch you want to open fix pull requests for. + branches: + - "main" + - "v1-maint" + - "v2-maint" + schedule: + # The job will run once a day at 00:00 GMT. + - cron: "0 0 * * *" +permissions: + contents: write + pull-requests: write + security-events: write +jobs: + create-fix-pull-requests: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + + # Install prerequisites + - name: Setup Go + uses: actions/setup-go@v3 + with: + go-version: 1.20.x + + - uses: jfrog/frogbot@v2 + env: + # [Mandatory] + # JFrog platform URL + JF_URL: ${{ secrets.JF_URL }} + + # [Mandatory if JF_ACCESS_TOKEN is not provided] + # JFrog username with 'read' permissions for Xray. Must be provided with JF_PASSWORD + JF_USER: ${{ secrets.JF_USER }} + + # [Mandatory if JF_ACCESS_TOKEN is not provided] + # JFrog password. Must be provided with JF_USER + JF_PASSWORD: ${{ secrets.JF_PASSWORD }} + + # [Manadatory] + # The GitHub token automatically generated for the job + JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}