Add Prisma Cloud Code Security Scanner as a Pre-Receive Hook
Install Prisma Cloud Scanner as a Pre-Receive Hook on a Local Host
docker build -f Dockerfile.dev -t pre-receive.devchmod +x prisma-pre-receive.shdocker run --name data pre-receive.dev /bin/truedocker cp prisma-pre-receive.sh data:/home/git/test.git/hooks/pre-receivedocker run -d -p 52311:22 --volumes-from data pre-receive.devdocker cp data:/home/git/.ssh/id_ed25519git remote add test git@127.0.0.1:test.git $ GIT_SSH_COMMAND="ssh -o UserKnownHostsFile=/dev/null -o StrictHostKeyChecking=no -p 52311 -i ../id_ed25519" git push -u test main
Install Prisma Cloud Scanner as a Pre-Receive Hook on GitHub Enterprise Server
Install Prisma Cloud Scanner as a Pre-Receive Hook on GitLab Self-Managed
Pre-Receive Hook Script
Last updated
Was this helpful?

