Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 1 addition & 8 deletions .github/linters/.eslintrc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,6 @@ extends:
- eslint:recommended
- plugin:@typescript-eslint/eslint-recommended
- plugin:@typescript-eslint/recommended
- plugin:github/recommended
- plugin:jest/recommended

rules:
Expand All @@ -43,9 +42,7 @@ rules:
'import/no-namespace': 'off',
'no-console': 'off',
'no-unused-vars': 'off',
'prettier/prettier': 'error',
'semi': 'off',
'no-shadow': 'off',
'@typescript-eslint/array-type': 'error',
'@typescript-eslint/await-thenable': 'error',
'@typescript-eslint/ban-ts-comment': 'error',
Expand All @@ -54,7 +51,6 @@ rules:
['error', { 'accessibility': 'no-public' }],
'@typescript-eslint/explicit-function-return-type':
['error', { 'allowExpressions': true }],
'@typescript-eslint/func-call-spacing': ['error', 'never'],
'@typescript-eslint/no-array-constructor': 'error',
'@typescript-eslint/no-empty-interface': 'error',
'@typescript-eslint/no-explicit-any': 'error',
Expand All @@ -77,9 +73,6 @@ rules:
'@typescript-eslint/promise-function-async': 'error',
'@typescript-eslint/require-array-sort-compare': 'error',
'@typescript-eslint/restrict-plus-operands': 'error',
'@typescript-eslint/semi': ['error', 'never'],
'@typescript-eslint/space-before-function-paren': 'off',
'@typescript-eslint/type-annotation-spacing': 'error',
'@typescript-eslint/unbound-method': 'error',
'@typescript-eslint/no-shadow': 'warn'
'@typescript-eslint/unbound-method': 'error'
}
12 changes: 9 additions & 3 deletions .github/workflows/check-dist.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,18 +45,24 @@ jobs:
id: build
run: npm run bundle

# This will fail the workflow if the PR wasn't created by Dependabot.
# This will fail the workflow if the `dist/` directory is different than
# expected.
- name: Compare Directories
id: diff
run: |
if [ ! -d dist/ ]; then
echo "Expected dist/ directory does not exist. See status below:"
ls -la ./
exit 1
fi
if [ "$(git diff --ignore-space-at-eol --text dist/ | wc -l)" -gt "0" ]; then
echo "Detected uncommitted changes after build. See status below:"
git diff --ignore-space-at-eol --text dist/
exit 1
fi

# If `dist/` was different than expected, and this was not a Dependabot
# PR, upload the expected version as a workflow artifact.
# If `dist/` was different than expected, upload the expected version as a
# workflow artifact.
- if: ${{ failure() && steps.diff.outcome == 'failure' }}
name: Upload Artifact
id: upload
Expand Down
8 changes: 3 additions & 5 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,16 +38,14 @@ jobs:

- name: Lint Codebase
id: super-linter
uses: super-linter/super-linter/slim@v6
uses: super-linter/super-linter/slim@v7
env:
DEFAULT_BRANCH: main
FILTER_REGEX_EXCLUDE: dist/**/*
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_ALL_CODEBASE: true
VALIDATE_JAVASCRIPT_STANDARD: false
VALIDATE_JSCPD: false
VALIDATE_PYTHON_ISORT: false
VALIDATE_PYTHON_PYLINT: false
VALIDATE_PYTHON_FLAKE8: false
VALIDATE_TYPESCRIPT_STANDARD: false
VALIDATE_MARKDOWN: false
VALIDATE_MARKDOWN_PRETTIER: false
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,14 +23,14 @@ for them.

> [!WARNING]
>
> Warning: Ensure the GitHub Actions runner environment supports both Node.js
> and Python when running workflows that include JavaScript and Python scripts.
> Using an incompatible runner environment may result in errors or unexpected
> behavior during script execution.
> Warning: Ensure the GitHub Actions runner environment supports Node.js when
> running workflows that include JavaScript scripts. Using an incompatible
> runner environment may result in errors or unexpected behavior during script
> execution.
>
> To avoid issues, consider using a GitHub-hosted runner image like
> 'ubuntu-latest' or 'microsoft-latest' that comes pre-installed with both
> Node.js and Python required versions.
> 'ubuntu-latest' or 'microsoft-latest' that comes pre-installed with Node.js
> required version.

<!-- action-docs-description -->

Expand Down Expand Up @@ -114,7 +114,7 @@ reference the **Inputs** section.
**Example:**

```yaml
uses: FiniteStateInc/binary-scan@v3.0.0
uses: FiniteStateInc/binary-scan@v4.0.0
with:
finite-state-client-id: ${{ secrets.CLIENT_ID }}
finite-state-secret: ${{ secrets.CLIENT_SECRET }}
Expand All @@ -136,7 +136,7 @@ The following example includes optional parameters `github-token` and
**Example:**

```yaml
uses: FiniteStateInc/binary-scan@v3.0.0
uses: FiniteStateInc/binary-scan@v4.0.0
with:
finite-state-client-id: ${{ secrets.CLIENT_ID }}
finite-state-secret: ${{ secrets.CLIENT_SECRET }}
Expand Down Expand Up @@ -210,7 +210,7 @@ jobs:
path: # Put the path to your binary file generated in the previous step here

- name: Binary Scan
uses: FiniteStateInc/binary-scan@v3.0.0
uses: FiniteStateInc/binary-scan@v4.0.0
id: binary_scan
with:
finite-state-client-id: ${{ secrets.CLIENT_ID }}
Expand Down
1,624 changes: 506 additions & 1,118 deletions dist/index.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/index.js.map

Large diffs are not rendered by default.

22 changes: 22 additions & 0 deletions dist/licenses.txt

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading