Skip to content

Commit e142bbe

Browse files
committed
add overview
1 parent 9f11e0b commit e142bbe

File tree

1 file changed

+15
-9
lines changed

1 file changed

+15
-9
lines changed

README.md

Lines changed: 15 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,17 @@
55
</p>
66
<p align="center">Scans for unsafe contexts, hardcoded IDs, and other issues to optimize your Flows.</p>
77

8-
![Demo GIF](media/lfsaction.gif)
8+
<p align="center">
9+
<img src="media/lfsaction.gif" alt="Lightning Flow Scanner Demo" width="70%" />
10+
</p>
911

10-
_[![GitHub Marketplace](https://img.shields.io/badge/GitHub%20Action-Lightning%20Flow%20Scanner-blue?logo=github)](https://github.com/marketplace/actions/run-flow-scanner) - For more info on the rules and configurations, please review the [Scanner Documentation](https://flow-scanner.github.io/lightning-flow-scanner-core/)._
12+
[![GitHub Marketplace](https://img.shields.io/badge/GitHub%20Action-Lightning%20Flow%20Scanner-blue?logo=github)](https://github.com/marketplace/actions/run-flow-scanner)
13+
14+
- [Usage](#usage)[Rule Configuration](#rule-configuration)
15+
- [Run On Pull Requests](#run-on-pull-requests)
16+
- [Manual Action](manual-action)
17+
- [Configuration](#configuration)
18+
- [Development](#development)
1119

1220
## Usage
1321

@@ -25,7 +33,7 @@ jobs:
2533
- name: Get Latest Version
2634
uses: actions/checkout@v4
2735
- name: Run Flow Scanner
28-
uses: RubenHalman/lightning-flow-scanner-ga@1.2.0
36+
uses: RubenHalman/lightning-flow-scanner-action@1.4.0
2937
with:
3038
severityThreshold: error
3139
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
@@ -38,11 +46,11 @@ Also ensure the following:
3846
- Workflows have read and write permissions in the repository.
3947
- Allow GitHub Actions to create and approve pull requests.
4048

41-
### A) Automatically Runs On Pull Requests:
49+
### Run On Pull Requests
4250

4351
`on:pull_request` will trigger Flow Scanner to scan changed flow files every time a pull request is opened.
4452

45-
### B) Or Run It Manually:
53+
### Manual Action
4654

4755
`on:workflow_dispatch` allows you to run the action on all Flows manually, by following these steps:
4856
1. Navigate to the "Actions" tab of your GitHub repository.
@@ -57,7 +65,7 @@ Flow Scanner can be configured and the action will look for a .flow-scanner file
5765
- `.flow-scanner.yml`
5866
- `.flow-scanner.json`
5967

60-
### Example configuration
68+
*Configuration example(snippet):*
6169

6270
```
6371
rules:
@@ -67,12 +75,10 @@ rules:
6775
severity: error
6876
```
6977
70-
For example:
71-
7278
- With `severityThreshold`: `error`, only `HardcodedId` will fail.
7379
- With `severityThreshold`: `warning`, both `HardcodedId `and `FlowName` will fail the workflow.
7480
75-
If no configurations are found, the scanner falls back to the default rules/threshold.
81+
For more information about available rules and configurations, please review the [Core Module Documentation](https://flow-scanner.github.io/lightning-flow-scanner-core/).
7682
7783
## Development
7884

0 commit comments

Comments
 (0)