Skip to Content
Get startedTroubleshooting

Troubleshooting

1. Some Repositories Are Not Visible on the Import Project Page

Issue: Certain repositories may not be visible when trying to import them into the project.

Solution:

  • Ensure the application is installed on the workspace.
  • Verify that the necessary repository has been granted the required permissions.
  • If multiple repositories are not visible, double-check the repository selection settings and permissions.

2. Scan Fails, and Project Is Disconnected on Dashboard

Issue: Scan fails, and the project gets disconnected from the dashboard.

Solution:

  • Check if there have been recent permission updates in the workspace. This can happen after new deployments.
  • Ensure that the correct application settings are still in place, and permissions have not been inadvertently modified.

3. Pipeline Setup – Configuration Errors

Issue: Incorrect configuration can lead to failed pipelines, wasting time and resources.

Solution:

  • Before running the pipeline, double-check that the setup is correct to prevent errors and failure.
  • Test Locally: Run the following command in the terminal to test the configuration before running the pipeline:
npx level-ci --verify --configPath=path/to/level-ci.config.ts

If the terminal prints a table with scan results, then the configuration is correct, and you are good to go for the pipeline.

  • Confirm that the CI/CD config file (e.g., .yml file for GitHub Actions, GitLab, Azure Pipelines) points to the right project and branch.

4. Why Do My Scans Take Longer Than Expected?

Issue: Scans may run slower due to large repositories or unnecessary paths being included.

Solution:

  • Use the include and exclude settings in the configuration file to scope scans to relevant code paths only.
  • Avoid scanning build artifacts (e.g., dist/, node_modules/).
  • Run a test scan locally to confirm performance.

5. Why Is My Pull Request Not Showing Scan Results?

Issue: PR decorations are missing, even though the scan ran successfully.

Solution:

  • Ensure the GitHub App/Integration has Write access to Pull Requests.
  • Verify that the correct branch mapping exists in the project settings.
  • Check pipeline logs to confirm that the scan step completed and results were uploaded.
Last updated on