Skip to content

Commit f7ad457

Browse files
Update CI integrations with the new scan timeout parameter (#583)
* Update CI integrations with the new scan timeout parameter * Update github-action.mdx * Apply suggestions from code review Co-authored-by: Zoltan David <[email protected]> * Update website/docs/advanced/code-references/circleci-orb.mdx Co-authored-by: Zoltan David <[email protected]> --------- Co-authored-by: Zoltan David <[email protected]>
1 parent ad6bd54 commit f7ad457

File tree

10 files changed

+20
-8
lines changed

10 files changed

+20
-8
lines changed

website/docs/advanced/code-references/azure-devops.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ to automatically scan your source code for feature flag and setting usages and u
1717
Don't forget to replace the `PASTE-YOUR-CONFIG-ID-HERE` value with your actual Config ID.
1818
```yaml
1919
- job: configcat_scan_and_upload
20-
container: configcat/cli:azure-devops-2.4.0
20+
container: configcat/cli:azure-devops-2.4.2
2121
pool:
2222
vmImage: ubuntu-latest
2323
steps:

website/docs/advanced/code-references/bitbucket-pipe.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ You can find more information about Bitbucket Pipelines <a target="_blank" href=
1818
Don't forget to replace the `PASTE-YOUR-CONFIG-ID-HERE` value with your actual Config ID.
1919

2020
```yaml
21-
- pipe: configcat/scan-repository-pipe:1.8.0
21+
- pipe: configcat/scan-repository-pipe:1.8.1
2222
variables:
2323
CONFIG_ID: 'PASTE-YOUR-CONFIG-ID-HERE'
2424
# LINE_COUNT: '3' # optional
25+
# TIMEOUT: '1800' # optional
2526
# SUB_FOLDER: '/src' # optional
2627
# EXCLUDE_KEYS: > # optional
2728
# flag_key_to_exclude_1
@@ -42,6 +43,7 @@ Scan reports are uploaded for each branch of your repository that triggers the j
4243
| `CONFIG_ID ` | ID of the ConfigCat config to scan against. | &#9745; | |
4344
| `CONFIGCAT_API_HOST` | ConfigCat Management API host. | | `api.configcat.com` |
4445
| `LINE_COUNT` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
46+
| `TIMEOUT` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
4547
| `SUB_FOLDER` | Sub-folder to scan, relative to the repository root folder. | | |
4648
| `EXCLUDE_KEYS` | List of feature flag keys that must be excluded from the scan report. | | |
4749
| `ALIAS_PATTERNS` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/docs/advanced/code-references/circleci-orb.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can find more information about CircleCI Orbs <a target="_blank" href="https
2121
version: 2.1
2222

2323
orbs:
24-
configcat: configcat/[email protected].0
24+
configcat: configcat/[email protected].1
2525

2626
workflows:
2727
main:
@@ -31,6 +31,7 @@ You can find more information about CircleCI Orbs <a target="_blank" href="https
3131
file-url-template: 'https://github.com/your/repo/blob/{commitHash}/{filePath}#L{lineNumber}' # optional
3232
commit-url-template: 'https://github.com/your/repo/commit/{commitHash}' # optional
3333
# line-count: 3 # optional
34+
# timeout: 1800 # optional
3435
# sub-folder: 'src' # optional
3536
# exclude-keys: > # optional
3637
# flag_key_to_exclude_1
@@ -56,6 +57,7 @@ Scan reports are uploaded for each branch of your repository that triggers the w
5657
| `file-url-template` | Template url used to generate VCS file links. Available template parameters: `commitHash`, `filePath`, `lineNumber`. Example: `https://github.com/my/repo/blob/{commitHash}/{filePath}#L{lineNumber}` | | |
5758
| `commit-url-template` | Template url used to generate VCS commit links. Available template parameters: `commitHash`. Example: `https://github.com/my/repo/commit/{commitHash}` | | |
5859
| `line-count` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
60+
| `timeout` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
5961
| `sub-folder` | Sub-folder to scan, relative to the repository root folder. | | |
6062
| `exclude-keys` | List of feature flag keys that must be excluded from the scan report. | | |
6163
| `alias-patterns` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/docs/advanced/code-references/github-action.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ You can find more information about GitHub Actions <a target="_blank" href="http
3333
api-pass: ${{ secrets.CONFIGCAT_API_PASS }}
3434
config-id: PASTE-YOUR-CONFIG-ID-HERE
3535
# line-count: 5 # optional
36+
# timeout: 1800 # optional
3637
# sub-folder: src # optional
3738
# exclude-keys: > # optional
3839
# flag_key_to_exclude_1
@@ -56,6 +57,7 @@ Scan reports are uploaded for each branch of your repository that triggers the w
5657
| `api-pass` | <a target="_blank" href="https://app.configcat.com/my-account/public-api-credentials">ConfigCat Management API basic authentication password</a>. | &#9745; | |
5758
| `api-host` | ConfigCat Management API host. | | `api.configcat.com` |
5859
| `line-count` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
60+
| `timeout` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
5961
| `sub-folder` | Sub-folder to scan, relative to the repository root folder. | | |
6062
| `exclude-keys` | List of feature flag keys that must be excluded from the scan report. | | |
6163
| `alias-patterns` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/docs/advanced/code-references/gitlab-ci.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ to automatically scan your source code for feature flag and setting usages and u
2020
configcat-scan-repository:
2121
stage: deploy # the job will run in the deploy phase, but you can choose from any other phases you have
2222
image:
23-
name: configcat/cli:2.4.0
23+
name: configcat/cli:2.4.2
2424
entrypoint: ['']
2525
script:
2626
- configcat scan $CI_PROJECT_DIR

website/versioned_docs/version-V1/advanced/code-references/azure-devops.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ to automatically scan your source code for feature flag and setting usages and u
1717
Don't forget to replace the `PASTE-YOUR-CONFIG-ID-HERE` value with your actual Config ID.
1818
```yaml
1919
- job: configcat_scan_and_upload
20-
container: configcat/cli:azure-devops-2.4.0
20+
container: configcat/cli:azure-devops-2.4.2
2121
pool:
2222
vmImage: ubuntu-latest
2323
steps:

website/versioned_docs/version-V1/advanced/code-references/bitbucket-pipe.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,11 @@ You can find more information about Bitbucket Pipelines <a target="_blank" href=
1818
Don't forget to replace the `PASTE-YOUR-CONFIG-ID-HERE` value with your actual Config ID.
1919

2020
```yaml
21-
- pipe: configcat/scan-repository-pipe:1.8.0
21+
- pipe: configcat/scan-repository-pipe:1.8.1
2222
variables:
2323
CONFIG_ID: 'PASTE-YOUR-CONFIG-ID-HERE'
2424
# LINE_COUNT: '3' # optional
25+
# TIMEOUT: '1800' # optional
2526
# SUB_FOLDER: '/src' # optional
2627
# EXCLUDE_KEYS: > # optional
2728
# flag_key_to_exclude_1
@@ -42,6 +43,7 @@ Scan reports are uploaded for each branch of your repository that triggers the j
4243
| `CONFIG_ID ` | ID of the ConfigCat config to scan against. | &#9745; | |
4344
| `CONFIGCAT_API_HOST` | ConfigCat Management API host. | | `api.configcat.com` |
4445
| `LINE_COUNT` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
46+
| `TIMEOUT` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
4547
| `SUB_FOLDER` | Sub-folder to scan, relative to the repository root folder. | | |
4648
| `EXCLUDE_KEYS` | List of feature flag keys that must be excluded from the scan report. | | |
4749
| `ALIAS_PATTERNS` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/versioned_docs/version-V1/advanced/code-references/circleci-orb.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ You can find more information about CircleCI Orbs <a target="_blank" href="https
2121
version: 2.1
2222

2323
orbs:
24-
configcat: configcat/[email protected].0
24+
configcat: configcat/[email protected].1
2525

2626
workflows:
2727
main:
@@ -31,6 +31,7 @@ You can find more information about CircleCI Orbs <a target="_blank" href="https
3131
file-url-template: 'https://github.com/your/repo/blob/{commitHash}/{filePath}#L{lineNumber}' # optional
3232
commit-url-template: 'https://github.com/your/repo/commit/{commitHash}' # optional
3333
# line-count: 3 # optional
34+
# timeout: 1800 # optional
3435
# sub-folder: 'src' # optional
3536
# exclude-keys: > # optional
3637
# flag_key_to_exclude_1
@@ -56,6 +57,7 @@ Scan reports are uploaded for each branch of your repository that triggers the w
5657
| `file-url-template` | Template url used to generate VCS file links. Available template parameters: `commitHash`, `filePath`, `lineNumber`. Example: `https://github.com/my/repo/blob/{commitHash}/{filePath}#L{lineNumber}` | | |
5758
| `commit-url-template` | Template url used to generate VCS commit links. Available template parameters: `commitHash`. Example: `https://github.com/my/repo/commit/{commitHash}` | | |
5859
| `line-count` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
60+
| `timeout` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
5961
| `sub-folder` | Sub-folder to scan, relative to the repository root folder. | | |
6062
| `exclude-keys` | List of feature flag keys that must be excluded from the scan report. | | |
6163
| `alias-patterns` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/versioned_docs/version-V1/advanced/code-references/github-action.mdx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ You can find more information about GitHub Actions <a target="_blank" href="http
3333
api-pass: ${{ secrets.CONFIGCAT_API_PASS }}
3434
config-id: PASTE-YOUR-CONFIG-ID-HERE
3535
# line-count: 5 # optional
36+
# timeout: 1800 # optional
3637
# sub-folder: src # optional
3738
# exclude-keys: > # optional
3839
# flag_key_to_exclude_1
@@ -56,6 +57,7 @@ Scan reports are uploaded for each branch of your repository that triggers the w
5657
| `api-pass` | <a target="_blank" href="https://app.configcat.com/my-account/public-api-credentials">ConfigCat Management API basic authentication password</a>. | &#9745; | |
5758
| `api-host` | ConfigCat Management API host. | | `api.configcat.com` |
5859
| `line-count` | Context line count before and after the reference line. (min: 1, max: 10) | | 4 |
60+
| `timeout` | Scan timeout in seconds (default: 1800, min: 60). If the scan does not finish within this time, it is aborted. No partial results are returned. The command exits with a timeout error. | | 1800 |
5961
| `sub-folder` | Sub-folder to scan, relative to the repository root folder. | | |
6062
| `exclude-keys` | List of feature flag keys that must be excluded from the scan report. | | |
6163
| `alias-patterns` | Comma delimited list of custom regex patterns used to search for additional aliases. | | |

website/versioned_docs/version-V1/advanced/code-references/gitlab-ci.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ to automatically scan your source code for feature flag and setting usages and u
2020
configcat-scan-repository:
2121
stage: deploy # the job will run in the deploy phase, but you can choose from any other phases you have
2222
image:
23-
name: configcat/cli:2.4.0
23+
name: configcat/cli:2.4.2
2424
entrypoint: ['']
2525
script:
2626
- configcat scan $CI_PROJECT_DIR

0 commit comments

Comments
 (0)