Skip to content

Commit

Permalink
Change starter-workflows naming (#122)
Browse files Browse the repository at this point in the history
* Frogbot templates naming refactor
  • Loading branch information
omerzi authored Aug 16, 2022
1 parent c8dfced commit a4f0d23
Show file tree
Hide file tree
Showing 19 changed files with 35 additions and 24 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Fix"
name: "Frogbot Scan and Fix"
on:
push:
branches:
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [ opened, synchronize ]
Expand Down
4 changes: 2 additions & 2 deletions starter-workflows/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
This directory includes the code for Frogbot's Code Scanning GitHub templates.
Currently two templates are supported:

1. Frogbot Scan - which allows editing and then adding the frogbot-scan-pr.yml workflow.
2. Frogbot Fix - which allows editing and then adding the forgbot-fix.yml workflow.
1. Frogbot Scan Pull Request - which allows editing and then adding the frogbot-scan-pr.yml workflow.
2. Frogbot Scan and Fix - which allows editing and then adding the forgbot-fix.yml workflow.

To start using Starter-Workflows, please refer to
the [Using starter workflows GitHub documentation.](https://docs.github.com/en/actions/using-workflows/using-starter-workflows)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Uses JFrog Xray to scan the project.
# Read more about Frogbot here - https://github.com/jfrog/frogbot#frogbot

name: "Frogbot Fix"
name: "Frogbot Scan and Fix"
on:
push:
branches:
Expand Down
2 changes: 1 addition & 1 deletion starter-workflows/code-scanning/frogbot-scan-pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# Uses JFrog Xray to scan the project.
# Read more about Frogbot here - https://github.com/jfrog/frogbot#frogbot

name: "Frogbot Scan"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [ opened, synchronize ]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Frogbot Scan Pull Requests",
"name": "Frogbot Scan Pull Request",
"description": "Automatically scans new pull requests for security vulnerabilities. Uses JFrog Xray to scan the project. Included as part of JFrog's free subscription.",
"iconName": "frogbot",
"categories": [
Expand Down
23 changes: 17 additions & 6 deletions templates/github-actions/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
Use these templates to install [Frogbot](https://github.com/jfrog/frogbot/blob/master/README.md#frogbot) on your GitHub repository.

## Prerequisites
Make sure to [set up 'frogbot' environment and secrets](../../README.md#install-frogbot-using-github-actions) in your GitHub repository.
Make sure to [set up 'frogbot' environment and secrets](../../README.md#setting-up-frogbot-on-github-repositories) in
your GitHub repository.

## Using the Templates
1. Use the templates below, depending on the tool used to download dependencies for you project, to create the workflow files.
Expand All @@ -12,7 +13,12 @@ Make sure to [set up 'frogbot' environment and secrets](../../README.md#install-

## The Available Templates
### Pull Requests Scanning
Create a file named `frogbot-scan-pull-requests.yml` with the content of one of the following templates, depending on the tool used to download the project dependencies. Make sure to follow the guidelines in the 'Using the Templates' section above. This will allow Frogbot to scan pull requests for security vulnerabilities after the pull requests are created and before they are merged.

Create a file named `frogbot-scan-pull-request.yml` with the content of one of the following templates, depending on the
tool used to download the project dependencies. Make sure to follow the guidelines in the 'Using the Templates' section
above. This will allow Frogbot to scan pull requests for security vulnerabilities after the pull requests are created
and before they are merged.

- [Maven](scan-pull-request/frogbot-scan-pr-maven.yml)
- [Gradle](scan-pull-request/frogbot-scan-pr-gradle.yml)
- [npm](scan-pull-request/frogbot-scan-pr-npm.yml)
Expand All @@ -21,8 +27,13 @@ Create a file named `frogbot-scan-pull-requests.yml` with the content of one of
- [Go](scan-pull-request/frogbot-scan-pr-go.yml)
- [DotNet](scan-pull-request/frogbot-scan-pr-dotnet.yml)
- [NuGet](scan-pull-request/frogbot-scan-pr-nuget.yml)

### Pull Requests Opening
Create a file named `frogbot-open-pull-requests.yml` with the content of one of the following templates, depending on the tool used to download the project dependencies. Make sure to follow the guidelines in the 'Using the Templates' section above. This will make Frogbot open pull requests with fixes for security vulnerabilities found in the GitHub repository.
- [Maven](create-fix-pull-requests/frogbot-fix-maven.yml)
- [npm](create-fix-pull-requests/frogbot-fix-npm.yml)
- [Go](create-fix-pull-requests/frogbot-fix-go.yml)

Create a file named `frogbot-scan-and-fix.yml` with the content of one of the following templates, depending on the tool
used to download the project dependencies. Make sure to follow the guidelines in the 'Using the Templates' section
above. This will make Frogbot open pull requests with fixes for security vulnerabilities found in the GitHub repository.

- [Maven](scan-and-fix/frogbot-scan-and-fix-maven.yml)
- [npm](scan-and-fix/frogbot-scan-and-fix-npm.yml)
- [Go](scan-and-fix/frogbot-scan-and-fix-go.yml)
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Fix"
name: "Frogbot Scan and Fix"
on:
push:
# Creating fix pull requests will be triggered by any push to one of the these branches.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Fix"
name: "Frogbot Scan and Fix"
on:
push:
# Creating fix pull requests will be triggered by any push to one of the these branches.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Fix"
name: "Frogbot Scan and Fix"
on:
push:
# Creating fix pull requests will be triggered by any push to one of the these branches.
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: "Frogbot Scan PR"
name: "Frogbot Scan Pull Request"
on:
pull_request_target:
types: [opened, synchronize]
Expand Down

0 comments on commit a4f0d23

Please sign in to comment.