diff --git a/README.md b/README.md index a050d05..a564c04 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: wagoid/commitlint-github-action@v4 @@ -134,7 +134,7 @@ jobs: commitlint: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v3 with: fetch-depth: 0 - uses: actions/setup-node@v2 diff --git a/entrypoint.sh b/entrypoint.sh index a80ce64..e21674f 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -8,4 +8,8 @@ else export NODE_PATH=$NODE_PATH:/node_modules fi +# Since actions/checkout can be setup with a different user ID, we need to set the workspace as safe inside this action +# Info about the vunlerability: https://github.blog/2022-04-12-git-security-vulnerability-announced/ +git config --global --add safe.directory "$GITHUB_WORKSPACE" + node /run.js