forked from jfrog/jfrog-docker-desktop-extension
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added frogbot-scan-repository.yml on jfrog-github-app/add-frogbot-con…
…figurations
- Loading branch information
1 parent
8ebc972
commit e850a79
Showing
1 changed file
with
45 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
name: "Frogbot Scan Repository" | ||
on: | ||
push: # Trigger the workflow on push events | ||
branches: | ||
- "jfrog-github-app/add-frogbot-configurations" # Specify the default branch or use '*' for all branches | ||
workflow_dispatch: | ||
repository_dispatch: | ||
types: | ||
- trigger-frogbot-scan | ||
schedule: | ||
# The repository will be scanned once a day at 00:00 GMT. | ||
- cron: "0 0 * * *" | ||
|
||
permissions: | ||
contents: write | ||
pull-requests: write | ||
security-events: write | ||
|
||
jobs: | ||
scan-repository: | ||
runs-on: ubuntu-latest | ||
name: Scan Repository (${{ matrix.branch }} branch) | ||
strategy: | ||
matrix: | ||
# The repository scanning will be triggered periodically on the following branches. | ||
branch: [ "main" ] | ||
steps: | ||
- uses: jfrog/frogbot@v2 | ||
env: | ||
JFROG_CLI_LOG_LEVEL: "DEBUG" | ||
# [Mandatory] | ||
# JFrog platform URL (This functionality requires version 3.29.0 or above of Xray) | ||
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_TOKEN }} | ||
|
||
# [Mandatory] | ||
# The GitHub token is automatically generated for the job | ||
JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
# [Mandatory] | ||
# The name of the branch on which Frogbot will perform the scan | ||
JF_GIT_BASE_BRANCH: ${{ matrix.branch }} |