Skip to content

Commit 3ccdf03

Browse files
Add logic to validate subscription (#16)
1 parent a123d89 commit 3ccdf03

File tree

8 files changed

+32954
-24959
lines changed

8 files changed

+32954
-24959
lines changed

.github/workflows/test.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ jobs:
4747
uses: ./
4848
id: skip_check
4949
with:
50-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
5150
concurrent_skipping: 'never'
5251
skip_after_successful_duplicate: 'true'
5352
paths_ignore: '["**/README.md", "**/docs/**"]'
@@ -80,7 +79,6 @@ jobs:
8079
uses: ./
8180
id: skip_check
8281
with:
83-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
8482
cancel_others: 'false'
8583
paths: '["src/**", "dist/**"]'
8684

@@ -105,7 +103,6 @@ jobs:
105103
uses: ./
106104
id: skip_check
107105
with:
108-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
109106
paths_ignore: '["**/*.md"]'
110107
cancel_others: 'true'
111108
concurrent_skipping: 'outdated_runs'

.pre-commit-config.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,11 @@ repos:
77
rev: v8.38.0
88
hooks:
99
- id: eslint
10+
exclude: ^dist/
1011
- repo: https://github.com/pre-commit/pre-commit-hooks
1112
rev: v4.4.0
1213
hooks:
1314
- id: end-of-file-fixer
15+
exclude: ^dist/
1416
- id: trailing-whitespace
17+
exclude: ^dist/

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,6 @@ jobs:
260260
- id: skip_check
261261
uses: step-security/skip-duplicate-actions@v1
262262
with:
263-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
264263
# All of these options are optional, so you can remove them if you are happy with the defaults
265264
concurrent_skipping: 'never'
266265
skip_after_successful_duplicate: 'true'
@@ -288,7 +287,6 @@ jobs:
288287
- id: skip_check
289288
uses: step-security/skip-duplicate-actions@v1
290289
with:
291-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
292290
cancel_others: 'false'
293291
paths: '["src/**", "dist/**"]'
294292
- if: steps.skip_check.outputs.should_skip != 'true'
@@ -313,7 +311,6 @@ jobs:
313311
- id: skip_check
314312
uses: step-security/skip-duplicate-actions@v1
315313
with:
316-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
317314
paths_filter: |
318315
frontend:
319316
paths_ignore:
@@ -434,4 +431,3 @@ There are several approaches to circumvent this problem:
434431
```
435432

436433
- Define an opposite workflow, as offically suggested by GitHub: [Handling skipped but required checks](https://docs.github.com/en/repositories/configuring-branches-and-merges-in-your-repository/defining-the-mergeability-of-pull-requests/troubleshooting-required-status-checks#handling-skipped-but-required-checks)
437-

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,6 @@ inputs:
3535
description: 'One of never, same_content, same_content_newer, outdated_runs, always'
3636
required: true
3737
default: 'never'
38-
STEPSECURITY_API_KEY:
39-
description: "API key for validation"
40-
required: true
4138
outputs:
4239
should_skip:
4340
description: 'Returns true if the current run should be skipped according to your configured rules'

0 commit comments

Comments
 (0)