File tree Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Expand file tree Collapse file tree 1 file changed +45
-0
lines changed Original file line number Diff line number Diff line change
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 }}
You can’t perform that action at this time.
0 commit comments