fix: no line during buildLog
This commit is contained in:
parent
a165b21950
commit
1657e5a151
@ -52,12 +52,14 @@ export const sentry = Sentry;
|
|||||||
export const uniqueName = () => uniqueNamesGenerator(customConfig);
|
export const uniqueName = () => uniqueNamesGenerator(customConfig);
|
||||||
|
|
||||||
export const saveBuildLog = async ({ line, buildId, applicationId }) => {
|
export const saveBuildLog = async ({ line, buildId, applicationId }) => {
|
||||||
if (line.includes('ghs_')) {
|
if (line) {
|
||||||
const regex = /ghs_.*@/g;
|
if (line.includes('ghs_')) {
|
||||||
line = line.replace(regex, '<SENSITIVE_DATA_DELETED>@');
|
const regex = /ghs_.*@/g;
|
||||||
|
line = line.replace(regex, '<SENSITIVE_DATA_DELETED>@');
|
||||||
|
}
|
||||||
|
const addTimestamp = `${generateTimestamp()} ${line}`;
|
||||||
|
return await buildLogQueue.add(buildId, { buildId, line: addTimestamp, applicationId });
|
||||||
}
|
}
|
||||||
const addTimestamp = `${generateTimestamp()} ${line}`;
|
|
||||||
return await buildLogQueue.add(buildId, { buildId, line: addTimestamp, applicationId });
|
|
||||||
};
|
};
|
||||||
|
|
||||||
export const isTeamIdTokenAvailable = (request) => {
|
export const isTeamIdTokenAvailable = (request) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user