Hello I get this error in my pipelines bitbucket when I build my php code:
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Composer could not find a composer.json file in /opt/atlassian/pipelines/agent/build
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Any help please
Hi Omarlo,
Can you try using the "run-as-user" property. This will allow you to be a non-root user in Pipelines.
For example
image:
name: <your image name>
run-as-user: 1000
# Your normal pipeline below
pipelines:
default:
- step:
script:
- echo Hello
Thanks,
Phil
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.