build(ci): fix: безопасность
This commit is contained in:
@@ -34,13 +34,13 @@ pipeline {
|
|||||||
}
|
}
|
||||||
"""
|
"""
|
||||||
|
|
||||||
sh(script: """
|
sh(script: '''
|
||||||
curl -X POST \
|
curl -X POST \
|
||||||
-H "Authorization: token ${GITEA_TOKEN}" \
|
-H "Authorization: token ${GITEA_TOKEN}" \
|
||||||
-H "Content-Type: application/json" \
|
-H "Content-Type: application/json" \
|
||||||
-d '${releaseData}' \
|
-d '${releaseData}' \
|
||||||
"${GITEA_API_URL}/repos/${GITEA_REPO_OWNER}/${GITEA_REPO_NAME}/releases"
|
"${GITEA_API_URL}/repos/${GITEA_REPO_OWNER}/${GITEA_REPO_NAME}/releases"
|
||||||
""", returnStdout: true).trim()
|
''', returnStdout: true).trim()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user