I am using bitbucket renovate scan pipe in my bitbucket-pipeline yaml. Added all necessary environment variables as mentioned below.
Still getting 401 Unauthorized error.
RENOVATE_USERNAME: $RENOVATE_USERNAME
RENOVATE_PASSWORD: $RENOVATE_PASSWORD
RENOVATE_USER_EMAIL: $RENOVATE_USER_EMAIL
CONFIG_FILE_PATH: 'config.yaml'
RENOVATE_DRY_RUN: 'true'
GITHUB_COM_TOKEN: "value"
Error:
WARN: env config dryRun property has been changed to fullINFO: Repository started (repository=mwahlive/culture-dashboard-server)"renovateVersion": "37.6.3"ERROR: Repository has unknown error (repository=mwahlive/culture-dashboard-server)"err": {"name": "HTTPError","code": "ERR_NON_2XX_3XX_RESPONSE","timings": {"start": 1722825530471,"socket": 1722825530472,"lookup": 1722825530473,"connect": 1722825530475,"secureConnect": 1722825530479,"upload": 1722825530479,"response": 1722825530523,"end": 1722825530524,"phases": {"wait": 1,"dns": 1,"tcp": 2,"tls": 4,"request": 0,"firstByte": 44,"download": 1,"total": 53}},"message": "Response code 401 (Unauthorized)","stack": "HTTPError: Response code 401 (Unauthorized)\n at Request.<anonymous> (/opt/containerbase/tools/renovate/37.6.3/node_modules/got/dist/source/as-promise/index.js:118:42)\n at processTicksAndRejections (node:internal/process/task_queues:95:5)","options": {"headers": {"user-agent": "RenovateBot/37.6.3 (https://github.com/renovatebot/renovate)","accept": "application/json","authorization": "***********","accept-encoding": "gzip, deflate, br"},"url": "https://api.bitbucket.org/2.0/repositories/***-*****","hostType": "bitbucket","username": "","password": "","method": "GET","http2": false},"response": {"statusCode": 401,"statusMessage": "Unauthorized","body": "","headers": {"date": "Mon, 05 Aug 2024 02:38:50 GMT","content-type": "text/plain","content-length": "0","server": "AtlassianEdge","www-authenticate": "BitbucketCustom realm=Bitbucket.org HTTP","vary": "Origin","x-dc-location": "Micros-3","x-served-by": "14f9cc1e8d05","x-version": "cf7573d062f3","x-static-version": "cf7573d062f3","x-request-count": "826","x-render-time": "0.0080413818359375","x-b3-traceid": "6a88e39e19904299bf40723e13fa288b","x-b3-spanid": "f94dd37d99370b61","x-frame-options": "SAMEORIGIN","x-usage-user-time": "0.012645","x-usage-system-time": "0.000217","x-usage-input-ops": "0","x-usage-output-ops": "0","x-trace-id": "6a88e39e19904299bf40723e13fa288b","strict-transport-security": "max-age=31536000; includeSubDomains; preload","api-via-stargate": "True","x-content-type-options": "nosniff","x-xss-protection": "1; mode=block","atl-traceid": "6a88e39e19904299bf40723e13fa288b","report-to": "{\"endpoints\": [{\"url\": \"https://*****\"}], \"group\": \"endpoint-1\", \"include_subdomains\": true, \"max_age\": 600}","nel": "{\"failure_fraction\": 0.001, \"include_subdomains\": true, \"max_age\": 600, \"report_to\": \"endpoint-1\"}","connection": "close"},"httpVersion": "1.1","retryCount": 0}}INFO: Repository finished (repository=***)"cloned": undefined,"durationMs": 73G'day, @Tech Mwah
Have you reviewed our documentation here and verified that you've followed all the required steps, especially the creation of a new account for using Renovate bots?
I would also suggest you enable the debug mode on the pipe to get verbose logs to help identify the issue.
Regards,
Syahrul
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.