Frogbot Scan and Fix #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | |
environment: frogbot | |
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_USER and JF_PASSWORD are not provided] | |
# JFrog access token with 'read' permissions on Xray service | |
JF_ACCESS_TOKEN: ${{ secrets.JF_ACCESS_TOKEN }} | |
# [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 }} |