-
-
Notifications
You must be signed in to change notification settings - Fork 5
feat: add multi-language support with matrix scanning examples #39
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,58 @@ | ||
| name: Matrix Security Code Scanner | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: null | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| security-scan: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| strategy: | ||
| fail-fast: false | ||
| matrix: | ||
| include: | ||
| - language: javascript-typescript | ||
| - language: typescript | ||
| - language: go | ||
| - language: java-kotlin | ||
| build-mode: manual | ||
| build-command: "./gradlew :coordinator:app:build" | ||
|
|
||
| name: Security Code Scan (${{ matrix.language }}) | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Having the whole |
||
| steps: | ||
| - name: Security Code Scanner - ${{ matrix.language }} | ||
| uses: MetaMask/action-security-code-scanner@mo-multilang-support | ||
| with: | ||
| repo: ${{ github.repository }} | ||
| language: ${{ matrix.language }} | ||
| build_mode: ${{ matrix.build-mode }} | ||
| build_command: ${{ matrix.build-command }} | ||
| paths_ignored: | | ||
| .storybook/ | ||
| '**/__snapshots__/' | ||
| '**/*.snap' | ||
| '**/*.stories.js' | ||
| '**/*.stories.tsx' | ||
| '**/*.test.browser.ts*' | ||
| '**/*.test.js*' | ||
| '**/*.test.ts*' | ||
| '**/fixtures/' | ||
| '**/jest.config.js' | ||
| '**/jest.environment.js' | ||
| '**/mocks/' | ||
| '**/test*/' | ||
| docs/ | ||
| e2e/ | ||
| merged-packages/ | ||
| node_modules | ||
| storybook/ | ||
| test*/ | ||
| project_metrics_token: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }} | ||
| slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }} | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,46 @@ | ||
| name: MetaMask Security Code Scanner | ||
|
|
||
| on: | ||
| push: | ||
| branches: | ||
| - main | ||
| pull_request: | ||
| branches: | ||
| - main | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| run-security-scan: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| actions: read | ||
| contents: read | ||
| security-events: write | ||
| steps: | ||
| - name: MetaMask Security Code Scanner | ||
| uses: MetaMask/action-security-code-scanner@v1 | ||
| with: | ||
| repo: ${{ github.repository }} | ||
| paths_ignored: | | ||
| .storybook/ | ||
| '**/__snapshots__/' | ||
| '**/*.snap' | ||
| '**/*.stories.js' | ||
| '**/*.stories.tsx' | ||
| '**/*.test.browser.ts*' | ||
| '**/*.test.js*' | ||
| '**/*.test.ts*' | ||
| '**/fixtures/' | ||
| '**/jest.config.js' | ||
| '**/jest.environment.js' | ||
| '**/mocks/' | ||
| '**/test*/' | ||
| docs/ | ||
| e2e/ | ||
| merged-packages/ | ||
| node_modules | ||
| storybook/ | ||
| test*/ | ||
| rules_excluded: example | ||
| project_metrics_token: ${{ secrets.SECURITY_SCAN_METRICS_TOKEN }} | ||
| slack_webhook: ${{ secrets.APPSEC_BOT_SLACK_WEBHOOK }} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bug: Undefined Variable Affects Scan Success Logic
The
SEMGREP_SCAN_RESULTenvironment variable is commented out but still referenced in the overall scan success determination logic. This makes the variable undefined, causing its failure check to always evaluate to false and effectively ignore Semgrep scan failures.