
BSak657434 (Community Member) asked a question.
Hi,
Our scans have stopped working in our pipeline. I see the following error when I add export DEBUG=1 before scanning:
java.lang.SecurityException: Unacceptable config file directory path: ?/.srcclr
at com.sourceclear.agent.services.ConfigServiceImpl.<init>(ConfigServiceImpl.java:247)
at com.sourceclear.agent.services.ConfigServiceImpl.<init>(ConfigServiceImpl.java:227)
at com.sourceclear.agent.MainModule.configService(MainModule.java:59)
at com.sourceclear.agent.MainModule_ConfigServiceFactory.configService(MainModule_ConfigServiceFactory.java:33)
at com.sourceclear.agent.MainModule_ConfigServiceFactory.get(MainModule_ConfigServiceFactory.java:25)
at com.sourceclear.agent.MainModule_ConfigServiceFactory.get(MainModule_ConfigServiceFactory.java:8)
at dagger.internal.DoubleCheck.get(DoubleCheck.java:47)
at com.sourceclear.agent.DaggerMainApp.configService(DaggerMainApp.java:99)
at com.sourceclear.agent.Main.start(Main.java:68)
at com.sourceclear.agent.Main.main(Main.java:101)
How do I resolve this issue?
.png)
HI @DMartinez137494 (Community Member) ,
Yes, I was able to contact support and got a workaround. The workaround is to set the Java user.home property to a writeable location, which in case of Jenkins is ${WORKSPACE}.
So in my Jenkins pipeline for my SCA stage, I have the following:
environment {
JAVA_OPTS="-Duser.home=${WORKSPACE}"
}
So the user is still '?', however, the SourceClear directory is now ${WORKSPACE}/.srcclr
Hope that helps.
Best Regards,
--Mark