Skip to content

Commit b7cd9b1

Browse files
feat: Add logic to validate subscription (#15)
1 parent ca9bf9b commit b7cd9b1

12 files changed

+8039
-147
lines changed

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module.exports = {
66
extends: 'molindo/javascript',
77
env: {
88
node: true,
9-
jest: true
9+
jest: true,
10+
es6: true
1011
}
1112
};

.github/workflows/lint-pr-title-preview-ignoreLabels.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ jobs:
2626
env:
2727
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2828
with:
29-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
3029
ignoreLabels: |
3130
bot
3231
ignore-semantic-pull-request

.github/workflows/lint-pr-title-preview-outputErrorMessage.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@ jobs:
2424
id: lint_pr_title
2525
env:
2626
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
27-
with:
28-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
2927
- uses: marocchino/sticky-pull-request-comment@v2
3028
# When the previous steps fails, the workflow would stop. By adding this
3129
# condition you can continue the execution with the populated error message.

.github/workflows/lint-pr-title-preview-validateSingleCommit.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,5 @@ jobs:
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2626
with:
27-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
2827
validateSingleCommit: true
2928
validateSingleCommitMatchesPrTitle: true

.github/workflows/lint-pr-title-preview.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,5 +23,3 @@ jobs:
2323
- uses: ./
2424
env:
2525
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
26-
with:
27-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}

.github/workflows/lint-pr-title.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,5 +26,3 @@ jobs:
2626
- uses: ./
2727
env:
2828
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
29-
with:
30-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}

README.md

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,6 @@ jobs:
4141
- uses: step-security/action-semantic-pull-request@v1
4242
env:
4343
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
44-
with:
45-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
4644
```
4745
4846
See the [event triggers documentation](#event-triggers) below to learn more about what `pull_request_target` means.
@@ -141,7 +139,6 @@ jobs:
141139
env:
142140
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
143141
with:
144-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
145142
wip: true
146143
```
147144

@@ -198,8 +195,6 @@ jobs:
198195
id: lint_pr_title
199196
env:
200197
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
201-
with:
202-
STEPSECURITY_API_KEY: ${{ secrets.STEPSECURITY_API_KEY }}
203198

204199
- uses: marocchino/sticky-pull-request-comment@v2
205200
# When the previous steps fails, the workflow would stop. By adding this

action.yml

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,3 @@ inputs:
4747
wip:
4848
description: "For work-in-progress PRs you can typically use draft pull requests from Github. However, private repositories on the free plan don't have this option and therefore this action allows you to opt-in to using the special '[WIP]' prefix to indicate this state. This will avoid the validation of the PR title and the pull request checks remain pending. Note that a second check will be reported if this is enabled."
4949
required: false
50-
STEPSECURITY_API_KEY:
51-
description: "API key for validation"
52-
required: true

0 commit comments

Comments
 (0)