Skip to content

GitLab CI and Bitbucket Pipelines

Run Lintsure on every merge request or pull request in GitLab CI or Bitbucket Pipelines, inside your own runner.

Lintsure runs anywhere Node.js 22 or later runs. In CI it reads your checked-out code inside your own runner and writes the report there. Nothing is uploaded. On GitHub, use the GitHub Action instead.

GitLab CI

Add a job to .gitlab-ci.yml:

lintsure:
  image: node:22
  stage: test
  script:
    - npx --yes lintsure@0.3.17 scan . --sarif --fail-on gap
  artifacts:
    when: always
    paths:
      - lintsure-report.md
      - lintsure.sarif

The job fails when there’s an open Gap, and the report is kept as an artifact on the pipeline. To see findings without failing the pipeline at first, drop --fail-on gap or add allow_failure: true.

Bitbucket Pipelines

Add a step to bitbucket-pipelines.yml:

pipelines:
  pull-requests:
    '**':
      - step:
          name: Lintsure
          image: node:22
          script:
            - npx --yes lintsure@0.3.17 scan . --fail-on gap
          artifacts:
            - lintsure-report.md

Tips

  • Pin the version (lintsure@0.3.17) so a new release doesn’t change your results without you knowing. Update it on purpose.
  • Start without failing the build. Run it for a week, accept or fix what it finds, then save a baseline and turn on --fail-on gap --new-only, so only new problems block a merge.
  • Choose frameworks with a lintsure.config.yaml in the repository, or --framework gdpr,owasp-top10. See Configuration and CLI.

Lintsure is a readiness tool, not an audit or legal advice. Results cover code only; a qualified person should review them. Disclaimer