Exporting environment variables Exporting TERM Exporting PAGER Exporting DISPLAY Exporting CI Exporting SEMAPHORE Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SSH_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_NEW_CLI Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_BRANCH Exporting COVERALLS_REPO_TOKEN Exporting NPM_TOKEN Exporting SONAR_AUTH_TOKEN Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting .ssh/id_rsa with file mode 0600 Setting up the Semaphore toolbox Running: dowloadPath=$(curl -s -L --retry 5 http://packages.semaphoreci.com/toolbox/linux) && echo $dowloadPath && curl -s -L --retry 5 --connect-timeout 3 $dowloadPath -o /tmp/toolbox.tar && tar -xvf /tmp/toolbox.tar && mv toolbox ~/.toolbox && bash ~/.toolbox/install-toolbox && source ~/.toolbox/toolbox && echo 'source ~/.toolbox/toolbox' >> ~/.bash_profile && if [ -f /etc/init.d/xvfb ]; then /etc/init.d/xvfb start; fi http://packages.semaphoreci.com/toolbox/releases/download/v1.16.2/linux.tar toolbox/ toolbox/sem-service-check-params toolbox/ssh-session-cli toolbox/sem-version toolbox/new-cache toolbox/libchecksum toolbox/sem-service toolbox/toolbox toolbox/sem-install toolbox/install-toolbox toolbox/libcheckout toolbox/artifact toolbox/system-metrics-collector toolbox/cache toolbox/spc toolbox/install-package toolbox/README.md toolbox/retry toolbox/sem-dockerize toolbox/when toolbox/test-results toolbox/enetwork retry installed ssh-session-cli installed cache installed sem-service installed sem-dockerize installed sem-service-check-params installed install-package installed Installing the artifacts CLI artifacts installed Installing the test results CLI test-results installed Installing the SPC CLI spc installed Installing the when CLI when installed Installing the enetwork CLI when installed Starting to collect System Metrics in /tmp/system-metrics Starting virtual X frame buffer: Xvfb. Starting an ssh-agent Running: eval `ssh-agent` && echo 'eval $(ssh-agent) >/dev/null' >> ~/.bash_profile && echo 'yes' > /tmp/sempahore-user-commands-have-started Agent pid 5305 Connecting to cache Running: (ssh-keyscan -p 29920 -H 94.130.123.200 >> /home/semaphore/.ssh/known_hosts || true) && ssh-add /home/semaphore/.ssh/semaphore_cache_key # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.3 Identity added: /home/semaphore/.ssh/semaphore_cache_key (/home/semaphore/.ssh/semaphore_cache_key) checkout Performing shallow clone with depth: 50 HEAD is now at 815efd3 Upgrade dependencies and CI cache restore Detected .nvmrc. Fetching '/home/semaphore/.nvm' directory with cache keys 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f,nvm-upgrade-dependencies,nvm-master'... HIT: 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f', using key 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f'. Downloading key 'nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f'... Download complete. Duration: 533.441852ms. Size: 58.8M bytes. Unpacking '/tmp/nvm-upgrade-dependencies-4c11bc985b1c15c9f52fcee9511bbc5f-264143499'... Unpack complete. Duration: 1.16674115s. Restored: /home/semaphore/.nvm/. Detected package-lock.json. Fetching 'node_modules' directory with cache keys 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3,node-modules-upgrade-dependencies,node-modules-master'... HIT: 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3', using key 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3'. Downloading key 'node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3'... Download complete. Duration: 71.752672ms. Size: 7.6M bytes. Unpacking '/tmp/node-modules-upgrade-dependencies-e6f7615b152bc1ce9c98a920fa4b4cd3-172987502'... Unpack complete. Duration: 231.421029ms. Restored: node_modules/. npm run cover > @sineverba/years-interval@1.2.1 cover > npx nyc --reporter=lcov mocha Browserslist: caniuse-lite is outdated. Please run: npx browserslist@latest --update-db Why you should do it regularly: https://github.com/browserslist/browserslist#browsers-data-updating #interval ✔ Should return only current year ✔ Should return two years ✔ Should throw error 3 passing (4ms) docker run --rm -e SONAR_HOST_URL="https://sonarcloud.io" -e SONAR_LOGIN=$SONAR_AUTH_TOKEN -v "/home/semaphore/npm-pkg-year-interval:/usr/src" sonarsource/sonar-scanner-cli:4.6 Unable to find image 'sonarsource/sonar-scanner-cli:4.6' locally 4.6: Pulling from sonarsource/sonar-scanner-cli  97518928ae5f: Pulling fs layer   4a1c31aca1dc: Pulling fs layer   7c74deb5f42c: Pulling fs layer  97518928ae5f: Downloading 29.4kB/2.823MB  7c74deb5f42c: Downloading 541B/541B  7c74deb5f42c: Verifying Checksum  7c74deb5f42c: Download complete  4a1c31aca1dc: Downloading 531.7kB/112.6MB  97518928ae5f: Downloading 2.685MB/2.823MB  97518928ae5f: Verifying Checksum  97518928ae5f: Download complete  97518928ae5f: Extracting 32.77kB/2.823MB  4a1c31aca1dc: Downloading 2.145MB/112.6MB  97518928ae5f: Extracting 2.13MB/2.823MB  97518928ae5f: Extracting 2.823MB/2.823MB  97518928ae5f: Pull complete  4a1c31aca1dc: Downloading 3.767MB/112.6MB  4a1c31aca1dc: Downloading 7.547MB/112.6MB  4a1c31aca1dc: Downloading 12.34MB/112.6MB  4a1c31aca1dc: Downloading 16.64MB/112.6MB  4a1c31aca1dc: Downloading 25.74MB/112.6MB  4a1c31aca1dc: Downloading 29.51MB/112.6MB  4a1c31aca1dc: Downloading 35.42MB/112.6MB  4a1c31aca1dc: Downloading 38.1MB/112.6MB  4a1c31aca1dc: Downloading 44.5MB/112.6MB  4a1c31aca1dc: Downloading 50.93MB/112.6MB  4a1c31aca1dc: Downloading 58.42MB/112.6MB  4a1c31aca1dc: Downloading 61.12MB/112.6MB  4a1c31aca1dc: Downloading 64.34MB/112.6MB  4a1c31aca1dc: Downloading 70.73MB/112.6MB  4a1c31aca1dc: Downloading 78.23MB/112.6MB  4a1c31aca1dc: Downloading 82.5MB/112.6MB  4a1c31aca1dc: Downloading 92.63MB/112.6MB  4a1c31aca1dc: Downloading 103.9MB/112.6MB  4a1c31aca1dc: Downloading 110.8MB/112.6MB  4a1c31aca1dc: Verifying Checksum  4a1c31aca1dc: Download complete  4a1c31aca1dc: Extracting 557.1kB/112.6MB  4a1c31aca1dc: Extracting 6.685MB/112.6MB  4a1c31aca1dc: Extracting 13.93MB/112.6MB  4a1c31aca1dc: Extracting 20.05MB/112.6MB  4a1c31aca1dc: Extracting 26.74MB/112.6MB  4a1c31aca1dc: Extracting 32.87MB/112.6MB  4a1c31aca1dc: Extracting 35.09MB/112.6MB  4a1c31aca1dc: Extracting 42.34MB/112.6MB  4a1c31aca1dc: Extracting 49.02MB/112.6MB  4a1c31aca1dc: Extracting 55.71MB/112.6MB  4a1c31aca1dc: Extracting 61.83MB/112.6MB  4a1c31aca1dc: Extracting 65.18MB/112.6MB  4a1c31aca1dc: Extracting 68.52MB/112.6MB  4a1c31aca1dc: Extracting 74.09MB/112.6MB  4a1c31aca1dc: Extracting 81.33MB/112.6MB  4a1c31aca1dc: Extracting 87.46MB/112.6MB  4a1c31aca1dc: Extracting 89.13MB/112.6MB  4a1c31aca1dc: Extracting 91.91MB/112.6MB  4a1c31aca1dc: Extracting 93.03MB/112.6MB  4a1c31aca1dc: Extracting 93.59MB/112.6MB  4a1c31aca1dc: Extracting 98.04MB/112.6MB  4a1c31aca1dc: Extracting 100.3MB/112.6MB  4a1c31aca1dc: Extracting 101.9MB/112.6MB  4a1c31aca1dc: Extracting 104.2MB/112.6MB  4a1c31aca1dc: Extracting 105.8MB/112.6MB  4a1c31aca1dc: Extracting 107.5MB/112.6MB  4a1c31aca1dc: Extracting 110.3MB/112.6MB  4a1c31aca1dc: Extracting 112.6MB/112.6MB  4a1c31aca1dc: Pull complete  7c74deb5f42c: Extracting 541B/541B  7c74deb5f42c: Extracting 541B/541B  7c74deb5f42c: Pull complete Digest: sha256:9d71473f13701aedbd92577c10c901fbde84d9193c16ceff3defdf3a9dea8543 Status: Downloaded newer image for sonarsource/sonar-scanner-cli:4.6 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: /usr/src/sonar-project.properties INFO: SonarScanner 4.6.2.2472 INFO: Java 11.0.14 Alpine (64-bit) INFO: Linux 5.13.0-28-generic amd64 INFO: User cache: /opt/sonar-scanner/.sonar/cache INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: /usr/src/sonar-project.properties INFO: Analyzing on SonarQube server 9.0.1 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Load global settings INFO: Load global settings (done) | time=130ms INFO: Server id: 1BD809FA-AWHW8ct9-T_TB3XqouNu INFO: User cache: /opt/sonar-scanner/.sonar/cache INFO: Load/download plugins INFO: Load plugins index INFO: Load plugins index (done) | time=40ms INFO: Load/download plugins (done) | time=18483ms INFO: Loaded core extensions: developer-scanner INFO: Load project settings for component key: 'npm-pkg-years-interval' INFO: Load project settings for component key: 'npm-pkg-years-interval' (done) | time=23ms INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=4ms INFO: Project key: npm-pkg-years-interval INFO: Base dir: /usr/src INFO: Working dir: /usr/src/.scannerwork INFO: Load project branches INFO: Load project branches (done) | time=29ms INFO: Check ALM binding of project 'npm-pkg-years-interval' INFO: Detected project binding: NOT_BOUND INFO: Check ALM binding of project 'npm-pkg-years-interval' (done) | time=17ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=16ms INFO: Load branch configuration INFO: Load branch configuration (done) | time=1ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=63ms INFO: Load active rules INFO: Load active rules (done) | time=1295ms INFO: Organization key: sineverba INFO: Load project repositories INFO: Load project repositories (done) | time=20ms INFO: Indexing files... INFO: Project configuration: INFO: Excluded sources: **/build-wrapper-dump.json, test/** INFO: 2 files indexed INFO: 0 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for js: Sonar way INFO: ------------- Run sensors on module npm-pkg-years-interval INFO: Load metrics repository INFO: Load metrics repository (done) | time=29ms INFO: Sensor C# Project Type Information [csharp] INFO: Sensor C# Project Type Information [csharp] (done) | time=3ms INFO: Sensor C# Analysis Log [csharp] INFO: Sensor C# Analysis Log [csharp] (done) | time=30ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=0ms INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=5ms INFO: Sensor Text Sensor [text] INFO: 2 source files to be analyzed INFO: 2/2 source files have been analyzed INFO: Sensor Text Sensor [text] (done) | time=28ms INFO: Sensor VB.NET Project Type Information [vbnet] INFO: Sensor VB.NET Project Type Information [vbnet] (done) | time=1ms INFO: Sensor VB.NET Analysis Log [vbnet] INFO: Sensor VB.NET Analysis Log [vbnet] (done) | time=26ms INFO: Sensor VB.NET Properties [vbnet] INFO: Sensor VB.NET Properties [vbnet] (done) | time=0ms INFO: Sensor JaCoCo XML Report Importer [jacoco] INFO: 'sonar.coverage.jacoco.xmlReportPaths' is not defined. Using default locations: target/site/jacoco/jacoco.xml,target/site/jacoco-it/jacoco.xml,build/reports/jacoco/test/jacocoTestReport.xml INFO: No report imported, no coverage information will be imported by JaCoCo XML Report Importer INFO: Sensor JaCoCo XML Report Importer [jacoco] (done) | time=7ms INFO: Sensor JavaScript analysis [javascript] INFO: Deploying custom rules bundle jar:file:/opt/sonar-scanner/.sonar/cache/c8528df5e461867acf060f71702dbe39/sonar-securityjsfrontend-plugin.jar!/js-vulnerabilities-rules-1.0.0.tgz to /usr/src/.scannerwork/.sonartmp/eslint-bridge-bundle/package/custom-rules12858216600979272947 INFO: 2 source files to be analyzed INFO: 2/2 source files have been analyzed INFO: Sensor JavaScript analysis [javascript] (done) | time=4811ms INFO: Sensor TypeScript analysis [javascript] INFO: No input files found for analysis INFO: Sensor TypeScript analysis [javascript] (done) | time=1ms INFO: Sensor JavaScript/TypeScript Coverage [javascript] INFO: Analysing [/usr/src/coverage/lcov.info] INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=12ms INFO: Sensor CSS Rules [javascript] INFO: No CSS, PHP, HTML or VueJS files are found in the project. CSS analysis is skipped. INFO: Sensor CSS Rules [javascript] (done) | time=1ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=1ms INFO: Sensor Serverless configuration file sensor [security] INFO: 0 Serverless function entries were found in the project INFO: 0 Serverless function handlers were kept as entrypoints INFO: Sensor Serverless configuration file sensor [security] (done) | time=3ms INFO: Sensor AWS SAM template file sensor [security] INFO: Sensor AWS SAM template file sensor [security] (done) | time=2ms INFO: Sensor JavaSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/java INFO: Read 0 type definitions INFO: Reading UCFGs from: /usr/src/.scannerwork/ucfg2/java INFO: No UCFGs have been included for analysis. INFO: Sensor JavaSecuritySensor [security] (done) | time=3ms INFO: Sensor CSharpSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/ucfg_cs2 INFO: Read 0 type definitions INFO: Reading UCFGs from: /usr/src/ucfg_cs2 INFO: No UCFGs have been included for analysis. INFO: Sensor CSharpSecuritySensor [security] (done) | time=1ms INFO: Sensor PhpSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/php INFO: Read 0 type definitions INFO: Reading UCFGs from: /usr/src/.scannerwork/ucfg2/php INFO: No UCFGs have been included for analysis. INFO: Sensor PhpSecuritySensor [security] (done) | time=1ms INFO: Sensor PythonSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/python INFO: Read 0 type definitions INFO: Reading UCFGs from: /usr/src/.scannerwork/ucfg2/python INFO: No UCFGs have been included for analysis. INFO: Sensor PythonSecuritySensor [security] (done) | time=1ms INFO: Sensor JsSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/js INFO: Read 0 type definitions INFO: Reading UCFGs from: /usr/src/.scannerwork/ucfg2/js INFO: 07:34:08.23914 Building Runtime Type propagation graph INFO: 07:34:08.242869 Running Tarjan on 14 nodes INFO: 07:34:08.245661 Tarjan found 14 components INFO: 07:34:08.24834 Variable type analysis: done INFO: 07:34:08.249148 Building Runtime Type propagation graph INFO: 07:34:08.249695 Running Tarjan on 14 nodes INFO: 07:34:08.249924 Tarjan found 14 components INFO: 07:34:08.250342 Variable type analysis: done INFO: Analyzing 2 ucfgs to detect vulnerabilities. INFO: Taint analysis starting. Entrypoints: 2 INFO: Running symbolic analysis for 'JS' INFO: Taint analysis: done. INFO: Sensor JsSecuritySensor [security] (done) | time=381ms INFO: ------------- Run sensors on project INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=0ms INFO: CPD Executor Calculating CPD for 1 file INFO: CPD Executor CPD calculation finished (done) | time=10ms INFO: Analysis report generated in 140ms, dir size=196 KB INFO: Analysis report compressed in 13ms, zip size=41 KB INFO: Analysis report uploaded in 100ms INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=npm-pkg-years-interval INFO: Note that you will be able to access the updated dashboard once the server has processed the submitted analysis report INFO: More about the report processing at https://sonarcloud.io/api/ce/task?id=AX7YQQyW1esPUq38VSbl INFO: Analysis total time: 16.659 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 36.930s INFO: Final Memory: 37M/118M INFO: ------------------------------------------------------------------------ export SEMAPHORE_JOB_RESULT=passed