powertools-lambda-java icon indicating copy to clipboard operation
powertools-lambda-java copied to clipboard

(internal) GitHub build fails when using git-revision-date plugin in mkdocs

Open jeromevdl opened this issue 3 years ago • 0 comments

After the apparition of a cve and a correction pushed by git, we had an error when building the doc:

Error: fatal: unsafe repository ('/docs' is owned by someone else)

A git command (git log -n 1 --date=short) is issued by the git-revision-date plugin (see here) within the mkdocs container and we cannot apply the workaround git config --global --add safe.directory ... in the container.

We are removing the plugin temporarily (#853) to make the build work.

Expected Behavior

Using the plugin should work (the git log command performed by the plugin should not failed)

Current Behavior

The git command issued by the plugin fails.

Possible Solution

  • Removing the plugin for the moment.
  • Will also open an issue on https://github.com/zhaoterryy/mkdocs-git-revision-date-plugin

Steps to Reproduce (for bugs)

  • Add the plugin git-revision-date in mkdocs.yml
  • Let Github Actions run the build

jeromevdl avatar Apr 29 '22 12:04 jeromevdl