Skip to content

Commit 2c431c9

Browse files
Added frogbot-scan-repository.yml on jfrog-github-app/add-frogbot-configurations
1 parent 73dd347 commit 2c431c9

File tree

1 file changed

+45
-0
lines changed

1 file changed

+45
-0
lines changed
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
name: "Frogbot Scan Repository"
2+
on:
3+
push: # Trigger the workflow on push events
4+
branches:
5+
- "jfrog-github-app/add-frogbot-configurations" # Specify the default branch or use '*' for all branches
6+
workflow_dispatch:
7+
repository_dispatch:
8+
types:
9+
- trigger-frogbot-scan
10+
schedule:
11+
# The repository will be scanned once a day at 00:00 GMT.
12+
- cron: "0 0 * * *"
13+
14+
permissions:
15+
contents: write
16+
pull-requests: write
17+
security-events: write
18+
19+
jobs:
20+
scan-repository:
21+
runs-on: ubuntu-latest
22+
name: Scan Repository (${{ matrix.branch }} branch)
23+
strategy:
24+
matrix:
25+
# The repository scanning will be triggered periodically on the following branches.
26+
branch: [ "main" ]
27+
steps:
28+
- uses: jfrog/frogbot@v2.21.13
29+
env:
30+
JFROG_CLI_LOG_LEVEL: "DEBUG"
31+
# [Mandatory]
32+
# JFrog platform URL (This functionality requires version 3.29.0 or above of Xray)
33+
JF_URL: ${{ secrets.JF_URL }}
34+
35+
# [Mandatory if JF_USER and JF_PASSWORD are not provided]
36+
# JFrog access token with 'read' permissions on Xray service
37+
JF_ACCESS_TOKEN: ${{ secrets.JF_TOKEN }}
38+
39+
# [Mandatory]
40+
# The GitHub token is automatically generated for the job
41+
JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
43+
# [Mandatory]
44+
# The name of the branch on which Frogbot will perform the scan
45+
JF_GIT_BASE_BRANCH: ${{ matrix.branch }}

0 commit comments

Comments
 (0)