Closed kaihendry closed 2 years ago
Please try actions/checkout@v3
It seems to should be fixed in the peaceiris/hugo
docker image.
As a workaround, we can run git config --global --add safe.directory /
before hugo step.
I just re-ran and it still fails... Do I just wait? :grimacing:
https://github.com/kaihendry/dabase.com/runs/6168545815?check_suite_focus=true
You can try the image ghcr.io/peaceiris/hugo:test
Or peaceiris/hugo:test
Currently, we can add the following command before hugo building to avoid the error.
This looks like the current better measure since it is difficult to know a GITHUB_WORKSPACE directory when a Docker image is built.
cf. Git security vulnerability announced | The GitHub Blog
jobs:
build:
runs-on: ubuntu-20.04
container: peaceiris/hugo:v0.97.3
steps:
- uses: actions/checkout@v3
- name: Build and Deploy
run: |
git config --global --add safe.directory ${GITHUB_WORKSPACE}
hugo
Thanks for your help! I'll buy you a beer in Singapore https://github.com/kaihendry/dabase.com/runs/6186503865?check_suite_focus=true
Checklist
Describe your question
Build failure when it worked before: https://github.com/kaihendry/dabase.com/runs/6157428721?check_suite_focus=true
Relevant links
Relevant log output
Additional context.
Thank you for this project!