Skip to content

[UPSTREAM_BUG] Error: fatal: not in a git directory #13

@rickstaa

Description

@rickstaa

I noticed that when I run the action with the checkout@v4 it triggers a fatal: not in a git directory error when running the action. error.

name: Update Semver
on:
  push:
    branches-ignore:
      - '**'
    tags:
      - 'v*.*.*'
jobs:
  update-semver:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v4
      - uses: rickstaa/action-update-semver@main

This error was introduced in https://github.blog/2022-04-12-git-security-vulnerability-announced/; an official statement of the GitHub team about this problem can be found actions/checkout#766.

I applied the workout suggested in actions/checkout#766 in #14. This fix can be removed when a patch has been applied to the action ecosystem (See actions/checkout#766). I will keep this issue open until an upstream fix has been used.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingupstreamAn upstream bug causes these Issues.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions