Skip to content

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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions