Skip to content

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

Closed
@jeromevdl

Description

@jeromevdl

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

Steps to Reproduce (for bugs)

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

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions