Exporting environment variables Exporting CI Exporting COVERALLS_BITLY_PHP_API_WRAPPER Exporting COVERALLS_CURRICULUM_VITAE Exporting COVERALLS_DOCKER_CLOUDFLARE_DDNS Exporting COVERALLS_JWT_DECODER Exporting COVERALLS_NPM_PKG_DATE_CONVERT Exporting COVERALLS_NPM_PKG_SHORTFIELD Exporting COVERALLS_NPM_PKG_YEAR_INTERVAL Exporting COVERALLS_ONLINE_BANKING_BACKEND Exporting COVERALLS_ONLINE_BANKING_FRONTEND Exporting DISPLAY Exporting DOCKER_TOKEN Exporting DOCKER_USERNAME Exporting GITLAB_TOKEN Exporting HEROKU_API_KEY Exporting NETLIFY_ACCESS_TOKEN Exporting NETLIFY_BITBANK_SITE_ID Exporting NETLIFY_CURRICULUM_VITAE_SITE_ID Exporting NPM_TOKEN Exporting PAGER Exporting SEMAPHORE Exporting SEMAPHORE_AGENT_MACHINE_ENVIRONMENT_TYPE Exporting SEMAPHORE_AGENT_MACHINE_OS_IMAGE Exporting SEMAPHORE_AGENT_MACHINE_TYPE Exporting SEMAPHORE_ARTIFACT_TOKEN Exporting SEMAPHORE_CACHE_ARCHIVE_METHOD Exporting SEMAPHORE_CACHE_BACKEND Exporting SEMAPHORE_CACHE_PRIVATE_KEY_PATH Exporting SEMAPHORE_CACHE_URL Exporting SEMAPHORE_CACHE_USERNAME Exporting SEMAPHORE_GIT_BRANCH Exporting SEMAPHORE_GIT_COMMIT_RANGE Exporting SEMAPHORE_GIT_DIR Exporting SEMAPHORE_GIT_PROVIDER Exporting SEMAPHORE_GIT_REF Exporting SEMAPHORE_GIT_REF_TYPE Exporting SEMAPHORE_GIT_REPO_NAME Exporting SEMAPHORE_GIT_REPO_SLUG Exporting SEMAPHORE_GIT_SHA Exporting SEMAPHORE_GIT_URL Exporting SEMAPHORE_GIT_WORKING_BRANCH Exporting SEMAPHORE_JOB_ID Exporting SEMAPHORE_JOB_NAME Exporting SEMAPHORE_ORGANIZATION_URL Exporting SEMAPHORE_PIPELINE_0_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ARTEFACT_ID Exporting SEMAPHORE_PIPELINE_ID Exporting SEMAPHORE_PIPELINE_PROMOTED_BY Exporting SEMAPHORE_PIPELINE_PROMOTION Exporting SEMAPHORE_PIPELINE_RERUN Exporting SEMAPHORE_PROJECT_ID Exporting SEMAPHORE_PROJECT_NAME Exporting SEMAPHORE_TOOLBOX_METRICS_ENABLED Exporting SEMAPHORE_WORKFLOW_HOOK_SOURCE Exporting SEMAPHORE_WORKFLOW_ID Exporting SEMAPHORE_WORKFLOW_NUMBER Exporting SEMAPHORE_WORKFLOW_RERUN Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_API Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_HOOK Exporting SEMAPHORE_WORKFLOW_TRIGGERED_BY_SCHEDULE Exporting SONARSCANNER_VERSION Exporting SONAR_TOKEN Exporting SSH_PRIVATE_KEY_PATH Exporting TERM Exporting VERCEL_BITBANK_PROJECT_ID Exporting VERCEL_CURRICULUM_VITAE_PROJECT_ID Exporting VERCEL_ORG_ID Exporting VERCEL_TOKEN Injecting Files Injecting /home/semaphore/.ssh/semaphore_cache_key with file mode 0600 Injecting /home/semaphore/.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.19.26/linux.tar toolbox/ toolbox/enetwork toolbox/sem-service-check-params toolbox/sem-version toolbox/sem-dockerize toolbox/artifact toolbox/sem-context toolbox/test-results toolbox/sem-semantic-release toolbox/retry toolbox/install-toolbox toolbox/cache toolbox/install-package toolbox/system-metrics-collector toolbox/libchecksum toolbox/README.md toolbox/when toolbox/toolbox toolbox/spc toolbox/sem-install toolbox/ssh-session-cli toolbox/libcheckout toolbox/sem-service toolbox/Dockerfile.dev retry installed ssh-session-cli installed cache installed sem-context installed sem-service installed sem-dockerize installed sem-service-check-params installed sem-semantic-release 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 2424 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.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 # 94.130.123.200:29920 SSH-2.0-OpenSSH_7.6p1 Ubuntu-4ubuntu0.7 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 b774bc9 Merge pull request #36 from sineverba/release-1.3.0 cache restore Detected .nvmrc. Fetching '/home/semaphore/.nvm' directory with cache keys 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7,nvm-master,nvm-main'... HIT: 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7', using key 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7'. Downloading key 'nvm-master-64f0206cf436e6dcdca3d90db2eeddd7'... Download complete. Duration: 669.384552ms. Size: 72.4M bytes. Unpacking '/tmp/nvm-master-64f0206cf436e6dcdca3d90db2eeddd7-4159065970'... Unpack complete. Duration: 1.286763495s. Restored: /home/semaphore/.nvm/. Detected package-lock.json. Fetching 'node_modules' directory with cache keys 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb,node-modules-master,node-modules-main'... HIT: 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb', using key 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb'. Downloading key 'node-modules-master-ba955eed8ac042283b9eda0f89dda6fb'... Download complete. Duration: 203.021787ms. Size: 21.9M bytes. Unpacking '/tmp/node-modules-master-ba955eed8ac042283b9eda0f89dda6fb-1490993973'... Unpack complete. Duration: 610.960403ms. Restored: node_modules/. npm run coverage > shortfield@1.3.0 coverage > jest --coverage PASS src/__tests__/shortener.test.ts Test Shortener ✓ Should throws error if missing param (6 ms) ✓ Should return same string if length is lesser than 10 chars ✓ Should return truncated string if length is equal or greater than 10 chars ✓ Should return truncated string of 20 chars length ✓ Should return truncated string of 4 chars length (1 ms) ----------|---------|----------|---------|---------|------------------- File | % Stmts | % Branch | % Funcs | % Lines | Uncovered Line #s ----------|---------|----------|---------|---------|------------------- All files | 100 | 100 | 100 | 100 | index.ts | 100 | 100 | 100 | 100 | ----------|---------|----------|---------|---------|------------------- Test Suites: 1 passed, 1 total Tests: 5 passed, 5 total Snapshots: 0 total Time: 1.914 s Ran all test suites. docker run --rm -e SONAR_HOST_URL="https://sonarcloud.io" -e SONAR_LOGIN=$SONAR_TOKEN -v "/home/semaphore/npm-pkg-shortfield:/usr/src" sonarsource/sonar-scanner-cli:$SONARSCANNER_VERSION Unable to find image 'sonarsource/sonar-scanner-cli:4.8.0' locally 4.8.0: Pulling from sonarsource/sonar-scanner-cli  63b65145d645: Pulling fs layer   97acb97d39b8: Pulling fs layer   c14314a488cc: Pulling fs layer  63b65145d645: Downloading 34.14kB/3.374MB  c14314a488cc: Downloading 722B/732B  c14314a488cc: Downloading 732B/732B  c14314a488cc: Verifying Checksum  c14314a488cc: Download complete  97acb97d39b8: Downloading 530.8kB/110.4MB  63b65145d645: Verifying Checksum  63b65145d645: Download complete  63b65145d645: Extracting 65.54kB/3.374MB  97acb97d39b8: Downloading 9.12MB/110.4MB  63b65145d645: Extracting 2.687MB/3.374MB  63b65145d645: Extracting 3.374MB/3.374MB  63b65145d645: Pull complete  97acb97d39b8: Downloading 19.86MB/110.4MB  97acb97d39b8: Downloading 30.56MB/110.4MB  97acb97d39b8: Downloading 41.82MB/110.4MB  97acb97d39b8: Downloading 54.16MB/110.4MB  97acb97d39b8: Downloading 63.81MB/110.4MB  97acb97d39b8: Downloading 75.61MB/110.4MB  97acb97d39b8: Downloading 86.33MB/110.4MB  97acb97d39b8: Downloading 98.18MB/110.4MB  97acb97d39b8: Downloading 110MB/110.4MB  97acb97d39b8: Verifying Checksum  97acb97d39b8: Download complete  97acb97d39b8: Extracting 557.1kB/110.4MB  97acb97d39b8: Extracting 5.571MB/110.4MB  97acb97d39b8: Extracting 10.03MB/110.4MB  97acb97d39b8: Extracting 13.93MB/110.4MB  97acb97d39b8: Extracting 18.94MB/110.4MB  97acb97d39b8: Extracting 22.84MB/110.4MB  97acb97d39b8: Extracting 28.41MB/110.4MB  97acb97d39b8: Extracting 34.54MB/110.4MB  97acb97d39b8: Extracting 41.22MB/110.4MB  97acb97d39b8: Extracting 46.79MB/110.4MB  97acb97d39b8: Extracting 51.81MB/110.4MB  97acb97d39b8: Extracting 55.71MB/110.4MB  97acb97d39b8: Extracting 58.49MB/110.4MB  97acb97d39b8: Extracting 61.28MB/110.4MB  97acb97d39b8: Extracting 64.06MB/110.4MB  97acb97d39b8: Extracting 67.4MB/110.4MB  97acb97d39b8: Extracting 70.19MB/110.4MB  97acb97d39b8: Extracting 76.32MB/110.4MB  97acb97d39b8: Extracting 82.44MB/110.4MB  97acb97d39b8: Extracting 84.67MB/110.4MB  97acb97d39b8: Extracting 87.46MB/110.4MB  97acb97d39b8: Extracting 90.24MB/110.4MB  97acb97d39b8: Extracting 91.36MB/110.4MB  97acb97d39b8: Extracting 97.48MB/110.4MB  97acb97d39b8: Extracting 99.71MB/110.4MB  97acb97d39b8: Extracting 101.9MB/110.4MB  97acb97d39b8: Extracting 103.6MB/110.4MB  97acb97d39b8: Extracting 105.8MB/110.4MB  97acb97d39b8: Extracting 108.1MB/110.4MB  97acb97d39b8: Extracting 110.3MB/110.4MB  97acb97d39b8: Extracting 110.4MB/110.4MB  97acb97d39b8: Pull complete  c14314a488cc: Extracting 732B/732B  c14314a488cc: Extracting 732B/732B  c14314a488cc: Pull complete Digest: sha256:afda95da4045cf0ada3cae389720ad34d700aa8b48bdeb2c369b5f23c66a78b8 Status: Downloaded newer image for sonarsource/sonar-scanner-cli:4.8.0 INFO: Scanner configuration file: /opt/sonar-scanner/conf/sonar-scanner.properties INFO: Project root configuration file: /usr/src/sonar-project.properties INFO: SonarScanner 4.8.0.2856 INFO: Java 11.0.18 Alpine (64-bit) INFO: Linux 5.15.0-58-generic amd64 INFO: User cache: /opt/sonar-scanner/.sonar/cache INFO: Analyzing on SonarQube server 8.0.0.38131 INFO: Default locale: "en_US", source code encoding: "UTF-8" (analysis is platform dependent) INFO: Load global settings INFO: Load global settings (done) | time=111ms 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=81ms INFO: Load/download plugins (done) | time=3759ms INFO: Loaded core extensions: developer-scanner INFO: Load project settings for component key: 'npm-pkg-shortfield' INFO: Load project settings for component key: 'npm-pkg-shortfield' (done) | time=66ms INFO: Process project properties INFO: Execute project builders INFO: Execute project builders (done) | time=1ms INFO: Project key: npm-pkg-shortfield INFO: Base dir: /usr/src INFO: Working dir: /usr/src/.scannerwork INFO: Load project branches INFO: Load project branches (done) | time=61ms INFO: Check ALM binding of project 'npm-pkg-shortfield' INFO: Detected project binding: NOT_BOUND INFO: Check ALM binding of project 'npm-pkg-shortfield' (done) | time=49ms INFO: Load project pull requests INFO: Load project pull requests (done) | time=53ms INFO: Load branch configuration INFO: Load branch configuration (done) | time=4ms INFO: Load quality profiles INFO: Load quality profiles (done) | time=146ms INFO: Load active rules INFO: Load active rules (done) | time=2601ms INFO: Organization key: sineverba INFO: Load project repositories INFO: Load project repositories (done) | time=70ms INFO: Indexing files... INFO: Project configuration: INFO: Excluded sources: **/build-wrapper-dump.json, **/node_modules/**, src/__tests__/** INFO: Excluded tests: src/__tests__/**/* INFO: 1 file indexed INFO: 2 files ignored because of inclusion/exclusion patterns INFO: 0 files ignored because of scm ignore settings INFO: Quality profile for ts: Sonar way INFO: ------------- Run sensors on module npm-pkg-shortfield INFO: Load metrics repository INFO: Load metrics repository (done) | time=53ms INFO: Sensor cache enabled INFO: Load sensor cache WARN: Failed to prepare download of the sensor cache INFO: Load sensor cache (404) | time=54ms INFO: Sensor C# Project Type Information [csharp] INFO: Sensor C# Project Type Information [csharp] (done) | time=2ms INFO: Sensor C# Analysis Log [csharp] INFO: Sensor C# Analysis Log [csharp] (done) | time=11ms INFO: Sensor C# Properties [csharp] INFO: Sensor C# Properties [csharp] (done) | time=0ms INFO: Sensor HTML [web] INFO: Sensor HTML [web] (done) | time=3ms INFO: Sensor TextAndSecretsSensor [text] INFO: 1 source file to be analyzed INFO: 1/1 source file has been analyzed INFO: Sensor TextAndSecretsSensor [text] (done) | time=46ms 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=11ms 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=3ms INFO: Sensor TypeScript analysis [javascript] INFO: Found 1 tsconfig.json file(s): [/usr/src/tsconfig.json] INFO: Creating TypeScript program INFO: TypeScript configuration file /usr/src/tsconfig.json INFO: 1 source file to be analyzed INFO: Creating TypeScript program (done) | time=1095ms INFO: Starting analysis with current program INFO: Analyzed 1 file(s) with current program INFO: 1/1 source file has been analyzed INFO: Hit the cache for 0 out of 1 INFO: Miss the cache for 1 out of 1: ANALYSIS_MODE_INELIGIBLE [1/1] INFO: Sensor TypeScript analysis [javascript] (done) | time=5807ms 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 JavaScript/TypeScript Coverage [javascript] INFO: Analysing [/usr/src/coverage/lcov.info] INFO: Sensor JavaScript/TypeScript Coverage [javascript] (done) | time=7ms INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] INFO: Sensor ThymeLeaf template sensor [securityjavafrontend] (done) | time=0ms INFO: Sensor IaC Docker Sensor [iac] INFO: 0 source files to be analyzed INFO: 0/0 source files have been analyzed INFO: Sensor IaC Docker Sensor [iac] (done) | time=50ms 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=1ms INFO: Sensor AWS SAM Inline template file sensor [security] INFO: Sensor AWS SAM Inline template file sensor [security] (done) | time=1ms INFO: Sensor javabugs [dbd] INFO: Reading IR files from: /usr/src/.scannerwork/ir/java INFO: No IR files have been included for analysis. INFO: Sensor javabugs [dbd] (done) | time=1ms INFO: Sensor pythonbugs [dbd] INFO: Reading IR files from: /usr/src/.scannerwork/ir/python INFO: No IR files have been included for analysis. INFO: Sensor pythonbugs [dbd] (done) | time=1ms INFO: Sensor JavaSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/java INFO: Read 0 type definitions 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: No UCFGs have been included for analysis. INFO: Sensor CSharpSecuritySensor [security] (done) | time=2ms INFO: Sensor PhpSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/php INFO: Read 0 type definitions INFO: No UCFGs have been included for analysis. INFO: Sensor PhpSecuritySensor [security] (done) | time=2ms INFO: Sensor PythonSecuritySensor [security] INFO: Reading type hierarchy from: /usr/src/.scannerwork/ucfg2/python INFO: Read 0 type definitions 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: 08:07:22.393993 Building Runtime Type propagation graph INFO: 08:07:22.398045 Running Tarjan on 13 nodes INFO: 08:07:22.400843 Tarjan found 13 components INFO: 08:07:22.402624 Variable type analysis: done INFO: 08:07:22.403375 Building Runtime Type propagation graph INFO: 08:07:22.404055 Running Tarjan on 13 nodes INFO: 08:07:22.404476 Tarjan found 13 components INFO: 08:07:22.40488 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=1461ms INFO: ------------- Run sensors on project INFO: Sensor Analysis Warnings import [csharp] INFO: Sensor Analysis Warnings import [csharp] (done) | time=1ms INFO: Sensor Zero Coverage Sensor INFO: Sensor Zero Coverage Sensor (done) | time=1ms INFO: CPD Executor Calculating CPD for 1 file INFO: CPD Executor CPD calculation finished (done) | time=5ms INFO: Analysis report generated in 184ms, dir size=208 KB INFO: Analysis report compressed in 14ms, zip size=42 KB INFO: Analysis report uploaded in 135ms INFO: ANALYSIS SUCCESSFUL, you can find the results at: https://sonarcloud.io/dashboard?id=npm-pkg-shortfield 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=AYZ9UA7g2s0VUWnvmfNs WARN: Failed to prepare write of the sensor cache INFO: Time spent writing ucfgs 6ms INFO: Analysis total time: 19.704 s INFO: ------------------------------------------------------------------------ INFO: EXECUTION SUCCESS INFO: ------------------------------------------------------------------------ INFO: Total time: 25.730s INFO: Final Memory: 68M/230M INFO: ------------------------------------------------------------------------ Exporting environment variables Exporting SEMAPHORE_JOB_RESULT