Skip to content

Commit b01a761

Browse files
authored
ODP-2817 Create frogbot-scan-and-fix.yml
1 parent 42144c0 commit b01a761

File tree

1 file changed

+65
-0
lines changed

1 file changed

+65
-0
lines changed
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
# This workflow uses actions that are not certified by GitHub.
2+
# They are provided by a third-party and are governed by
3+
# separate terms of service, privacy policy, and support
4+
# documentation.
5+
# Frogbot Scan and Fix does the following:
6+
# Automatically creates pull requests with fixes for vulnerable project dependencies.
7+
# Uses JFrog Xray to scan the project.
8+
# Read more about Frogbot here - https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot
9+
10+
# Some projects require creating a frogbot-config.yml file. Read more about it here - https://docs.jfrog-applications.jfrog.io/jfrog-applications/frogbot/setup-frogbot/frogbot-configuration
11+
12+
name: "Frogbot Scan and Fix"
13+
on:
14+
workflow_dispatch:
15+
branches: [ "ODP-2817" ]
16+
permissions:
17+
contents: write
18+
pull-requests: write
19+
security-events: write
20+
jobs:
21+
create-fix-pull-requests:
22+
runs-on: ubuntu-latest
23+
steps:
24+
- uses: actions/checkout@v4
25+
26+
- uses: jfrog/frogbot@5d9c42c30f1169d8be4ba5510b40e75ffcbbc2a9 # v2.21.2
27+
env:
28+
# [Mandatory if the two conditions below are met]
29+
# 1. The project uses npm, yarn 2, NuGet or .NET to download its dependencies
30+
# 2. The `installCommand` variable isn't set in your frogbot-config.yml file.
31+
#
32+
# The command that installs the project dependencies (e.g "npm i", "nuget restore" or "dotnet restore")
33+
# JF_INSTALL_DEPS_CMD: ""
34+
35+
# [Mandatory]
36+
# JFrog platform URL
37+
JF_URL: https://trialn1ln20.jfrog.io
38+
39+
# [Mandatory if JF_USER and JF_PASSWORD are not provided]
40+
# JFrog access token with 'read' permissions on Xray service
41+
JF_ACCESS_TOKEN: cmVmdGtuOjAxOjE3NjY1NjgwMTg6dEVCM01qOUlOTTZteVh5VEx5MFk1S0h5M043
42+
43+
# [Mandatory if JF_ACCESS_TOKEN is not provided]
44+
# JFrog username with 'read' permissions for Xray. Must be provided with JF_PASSWORD
45+
# JF_USER: ${{ secrets.JF_USER }}
46+
47+
# [Mandatory if JF_ACCESS_TOKEN is not provided]
48+
# JFrog password. Must be provided with JF_USER
49+
# JF_PASSWORD: ${{ secrets.JF_PASSWORD }}
50+
51+
# [Mandatory]
52+
# The GitHub token automatically generated for the job
53+
JF_GIT_TOKEN: ${{ secrets.GITHUB_TOKEN }}
54+
55+
# [Optional]
56+
# If the machine that runs Frogbot has no access to the internat, set the name of a remote repository
57+
# in Artifactory, which proxies https://releases.jfrog.io/artifactory
58+
# The 'frogbot' executable and other tools it needs will be downloaded through this repository.
59+
# JF_RELEASES_REPO: ""
60+
61+
# [Optional]
62+
# Frogbot will download the project dependencies, if they're not cached locally. To download the
63+
# dependencies from a virtual repository in Artifactory, set the name of of the repository. There's no
64+
# need to set this value, if it is set in the frogbot-config.yml file.
65+
# JF_DEPS_REPO: ""

0 commit comments

Comments
 (0)