-
-
Notifications
You must be signed in to change notification settings - Fork 2k
Description #2943
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
base: main
Are you sure you want to change the base?
Description #2943
Changes from all commits
496e635
d5e3a6e
b60ca7e
5b4e5ba
ca980e2
64c1846
382958e
0416d45
4ada65f
75864aa
8bf32ce
744ecce
0f5c3d8
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,61 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow checks out code, performs a Codacy security scan | ||
| # and integrates the results with the | ||
| # GitHub Advanced Security code scanning feature. For more information on | ||
| # the Codacy security scan action usage and parameters, see | ||
| # https://github.com/codacy/codacy-analysis-cli-action. | ||
| # For more information on Codacy Analysis CLI in general, see | ||
| # https://github.com/codacy/codacy-analysis-cli. | ||
|
|
||
| name: Codacy Security Scan | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| # The branches below must be a subset of the branches above | ||
| branches: [ "main" ] | ||
| schedule: | ||
| - cron: '27 20 * * 4' | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| codacy-security-scan: | ||
| permissions: | ||
| contents: read # for actions/checkout to fetch code | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
| name: Codacy Security Scan | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| # Checkout the repository to the GitHub Actions runner | ||
| - name: Checkout code | ||
| uses: actions/checkout@v4 | ||
|
|
||
| # Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis | ||
| - name: Run Codacy Analysis CLI | ||
| uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b | ||
| with: | ||
| # Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository | ||
| # You can also omit the token and run the tools that support default configurations | ||
| project-token: ${{ secrets.CODACY_PROJECT_TOKEN }} | ||
| verbose: true | ||
| output: results.sarif | ||
| format: sarif | ||
| # Adjust severity of non-security issues | ||
| gh-code-scanning-compat: true | ||
| # Force 0 exit code to allow SARIF file generation | ||
| # This will handover control about PR rejection to the GitHub side | ||
| max-allowed-issues: 2147483647 | ||
|
|
||
| # Upload the SARIF file generated in the previous step | ||
| - name: Upload SARIF results file | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: results.sarif |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,42 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow will install Deno then run `deno lint` and `deno test`. | ||
| # For more information see: https://github.com/denoland/setup-deno | ||
|
|
||
| name: Deno | ||
|
|
||
| on: | ||
| push: | ||
| branches: ["main"] | ||
| pull_request: | ||
| branches: ["main"] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| test: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Setup repo | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Setup Deno | ||
| # uses: denoland/setup-deno@v1 | ||
| uses: denoland/setup-deno@61fe2df320078202e33d7d5ad347e7dcfa0e8f31 # v1.1.2 | ||
| with: | ||
| deno-version: v1.x | ||
|
|
||
| # Uncomment this step to verify the use of 'deno fmt' on each commit. | ||
| # - name: Verify formatting | ||
| # run: deno fmt --check | ||
|
|
||
| - name: Run linter | ||
| run: deno lint | ||
|
|
||
| - name: Run tests | ||
| run: deno test -A | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,67 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
|
|
||
| # This workflow helps you trigger a SonarCloud analysis of your code and populates | ||
| # GitHub Code Scanning alerts with the vulnerabilities found. | ||
| # Free for open source project. | ||
|
|
||
| # 1. Login to SonarCloud.io using your GitHub account | ||
|
|
||
| # 2. Import your project on SonarCloud | ||
| # * Add your GitHub organization first, then add your repository as a new project. | ||
| # * Please note that many languages are eligible for automatic analysis, | ||
| # which means that the analysis will start automatically without the need to set up GitHub Actions. | ||
| # * This behavior can be changed in Administration > Analysis Method. | ||
| # | ||
| # 3. Follow the SonarCloud in-product tutorial | ||
| # * a. Copy/paste the Project Key and the Organization Key into the args parameter below | ||
| # (You'll find this information in SonarCloud. Click on "Information" at the bottom left) | ||
| # | ||
| # * b. Generate a new token and add it to your Github repository's secrets using the name SONAR_TOKEN | ||
| # (On SonarCloud, click on your avatar on top-right > My account > Security | ||
| # or go directly to https://sonarcloud.io/account/security/) | ||
|
|
||
| # Feel free to take a look at our documentation (https://docs.sonarcloud.io/getting-started/github/) | ||
| # or reach out to our community forum if you need some help (https://community.sonarsource.com/c/help/sc/9) | ||
|
|
||
| name: SonarCloud analysis | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
| workflow_dispatch: | ||
|
|
||
| permissions: | ||
| pull-requests: read # allows SonarCloud to decorate PRs with analysis results | ||
|
|
||
| jobs: | ||
| Analysis: | ||
| runs-on: ubuntu-latest | ||
|
|
||
| steps: | ||
| - name: Analyze with SonarCloud | ||
|
|
||
| # You can pin the exact commit or the version. | ||
| # uses: SonarSource/sonarcloud-github-action@v2.2.0 | ||
| uses: SonarSource/sonarcloud-github-action@4006f663ecaf1f8093e8e4abb9227f6041f52216 | ||
| env: | ||
| SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} # Generate a token on Sonarcloud.io, add it to the secrets of this repo with the name SONAR_TOKEN (Settings > Secrets > Actions > add new repository secret) | ||
| with: | ||
| # Additional arguments for the SonarScanner CLI | ||
| args: | ||
| # Unique keys of your project and organization. You can find them in SonarCloud > Information (bottom-left menu) | ||
| # mandatory | ||
| -Dsonar.projectKey= | ||
| -Dsonar.organization= | ||
|
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. Sonar keys left emptyMedium Severity
Reviewed by Cursor Bugbot for commit 0f5c3d8. Configure here. |
||
| # Comma-separated paths to directories containing main source files. | ||
| #-Dsonar.sources= # optional, default is project base directory | ||
| # Comma-separated paths to directories containing test source files. | ||
| #-Dsonar.tests= # optional. For more info about Code Coverage, please refer to https://docs.sonarcloud.io/enriching/test-coverage/overview/ | ||
| # Adds more detail to both client and server-side analysis logs, activating DEBUG mode for the scanner, and adding client-side environment variables and system properties to the server-side log of analysis report processing. | ||
| #-Dsonar.verbose= # optional, default is false | ||
| # When you need the analysis to take place in a directory other than the one from which it was launched, default is . | ||
| projectBaseDir: . | ||
|
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. SonarCloud step skips checkoutHigh Severity The SonarCloud job has only the Reviewed by Cursor Bugbot for commit 0f5c3d8. Configure here. |
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,60 @@ | ||
| # This workflow uses actions that are not certified by GitHub. | ||
| # They are provided by a third-party and are governed by | ||
| # separate terms of service, privacy policy, and support | ||
| # documentation. | ||
| # | ||
| # The zimperium-zscan GitHub action scans your mobile app binary (iOS or Android) | ||
| # and identifies security, privacy, and compliance-related vulnerabilities. | ||
| # | ||
| # Prerequisites: | ||
| # * An active Zimperium zScan account is required. If you are not an existing Zimperium | ||
| # zScan customer, please request a zSCAN demo by visiting https://www.zimperium.com/contact-us. | ||
| # * Either GitHub Advanced Security (GHAS) or a public repository is required to display | ||
| # issues and view the remediation information inside of GitHub code scanning alerts. | ||
| # | ||
| # For additional information and setup instructions | ||
| # please visit: https://github.com/Zimperium/zScanMarketplace#readme | ||
|
|
||
| name: "Zimperium zScan" | ||
|
|
||
| on: | ||
| push: | ||
| branches: [ "main" ] | ||
| pull_request: | ||
| branches: [ "main" ] | ||
|
|
||
| permissions: | ||
| contents: read | ||
|
|
||
| jobs: | ||
| zscan: | ||
| name: zScan | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| contents: read # for actions/checkout to fetch code | ||
| security-events: write # for github/codeql-action/upload-sarif to upload SARIF results | ||
| actions: read # only required for a private repository by github/codeql-action/upload-sarif to get the Action run status | ||
| steps: | ||
| - name: Checkout repository | ||
| uses: actions/checkout@v4 | ||
|
|
||
| - name: Execute gradle build | ||
| run: ./gradlew build # Change this to build your mobile application | ||
|
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. Zscan workflow runs missing gradlewHigh Severity The zScan job runs Reviewed by Cursor Bugbot for commit 0f5c3d8. Configure here. |
||
|
|
||
| - name: Run Zimperium zScan | ||
| uses: zimperium/zscanmarketplace@bfc6670f6648d796098c251ccefcfdb98983174d | ||
| timeout-minutes: 60 | ||
| with: | ||
| # REPLACE: Zimperium Client Environment Name | ||
| client_env: env_string | ||
| # REPLACE: Zimperium Client ID | ||
| client_id: id_string | ||
| # REPLACE: Zimperium Client Secret | ||
| client_secret: ${{ secrets.ZSCAN_CLIENT_SECRET }} | ||
| # REPLACE: The path to an .ipa or .apk | ||
| app_file: app-release-unsigned.apk | ||
|
|
||
| - name: Upload SARIF file | ||
| uses: github/codeql-action/upload-sarif@v3 | ||
| with: | ||
| sarif_file: Zimperium.sarif | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,21 @@ | ||
| # Security Policy | ||
|
|
||
| ## Supported Versions | ||
|
|
||
| Use this section to tell people about which versions of your project are | ||
| currently being supported with security updates. | ||
|
|
||
| | Version | Supported | | ||
| | ------- | ------------------ | | ||
| | 5.1.x | :white_check_mark: | | ||
| | 5.0.x | :x: | | ||
| | 4.0.x | :white_check_mark: | | ||
| | < 4.0 | :x: | | ||
|
|
||
| ## Reporting a Vulnerability | ||
|
|
||
| Use this section to tell people how to report a vulnerability. | ||
|
|
||
| Tell them where to go, how often they can expect to get an update on a | ||
| reported vulnerability, what to expect if the vulnerability is accepted or | ||
| declined, etc. |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| <!DOCTYPE html> | ||
| <html lang="en"> | ||
| <head> | ||
| <meta charset="UTF-8"> | ||
| <meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
| <link rel="stylesheet" href="styles.css"> | ||
| <title>To-Do List</title> | ||
| </head> | ||
| <body> | ||
| <h1>To-Do List Application</h1> | ||
| <input type="text" id="new-task" placeholder="Add a new task..."> | ||
| <button id="add-task">Add Task</button> | ||
| <ul id="task-list"></ul> | ||
| <script src="script.js"></script> | ||
|
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. Root HTML missing assetsMedium Severity The new root Reviewed by Cursor Bugbot for commit 0f5c3d8. Configure here. |
||
| </body> | ||
| </html> | ||


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.
Deno CI on Node docs
Medium Severity
The Deno workflow runs
deno lintanddeno test -Aon everymainpush and PR, but the repo has nodeno.jsonand is built with npm/Docusaurus. Deno lint applies its own rules across the tree and is likely to fail or conflict with existing ESLint CI.Reviewed by Cursor Bugbot for commit 0f5c3d8. Configure here.