Skip to content

Commit 6ffbd3f

Browse files
committed
feat(action): Hardcoded Secret
1 parent 6a874f5 commit 6ffbd3f

4 files changed

Lines changed: 1246 additions & 23 deletions

File tree

packages/action/README.md

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,20 +153,27 @@ Executing DML operations (insert, update, delete) inside a loop is a high-risk a
153153
**Class Name:** _[DMLStatementInLoop](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/DMLStatementInLoop.ts)_
154154
**Severity:** 🔴 *Error*
155155
156-
#### Hardcoded Id
156+
#### Hardcoded Salesforce Id
157157
Avoid hard-coding record IDs, as they are unique to a specific org and will not work in other environments. Instead, store IDs in variables—such as merge-field URL parameters or a **Get Records** element—to make the Flow portable, maintainable, and flexible.
158158
159159
**Rule ID:** `hardcoded-id`
160160
**Class Name:** _[HardcodedId](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/HardcodedId.ts)_
161161
**Severity:** 🔴 *Error*
162162
163-
#### Hardcoded Url
163+
#### Hardcoded Salesforce Url
164164
Avoid hard-coding URLs, as they may change between environments or over time. Instead, store URLs in variables or custom settings to make the Flow adaptable, maintainable, and environment-independent.
165165
166166
**Rule ID:** `hardcoded-url`
167167
**Class Name:** _[HardcodedUrl](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/HardcodedUrl.ts)_
168168
**Severity:** 🔴 *Error*
169169
170+
#### Hardcoded Secret ![Beta](https://img.shields.io/badge/status-beta-yellow)
171+
Avoid hardcoding secrets, API keys, tokens, or credentials in Flows. These should be stored securely in Named Credentials, Custom Settings, Custom Metadata, or external secret management systems.
172+
173+
**Rule ID:** `hardcoded-secret`
174+
**Class Name:** _[HardcodedSecret](https://github.com/Flow-Scanner/lightning-flow-scanner/blob/main/packages/core/src/main/rules/HardcodedSecret.ts)_
175+
**Severity:** 🔴 *Error*
176+
170177
#### Process Builder
171178
Process Builder is retired. Continuing to use it increases maintenance overhead and risks future compatibility issues. Migrating automation to Flow reduces risk and improves maintainability.
172179

0 commit comments

Comments
 (0)