Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pass checkout path? #110

Open
juju4 opened this issue Feb 11, 2023 · 0 comments
Open

pass checkout path? #110

juju4 opened this issue Feb 11, 2023 · 0 comments

Comments

@juju4
Copy link

juju4 commented Feb 11, 2023

It seems that action does not support passing path with usual with: path: ...
my checkout is in a subfolder and action failed because not a git repo

https://github.com/juju4/ansible-adduser/actions/runs/4151619785/jobs/7182030614#step:12:26

1:40PM DBG no gitleaks config found in path .gitleaks.toml, using default gitleaks config
1:40PM DBG executing: /usr/bin/git -C . log -p -U0 --no-merges --first-parent 7c0c0e648f21bea1575b57aba8091c8f2c705e06^..da271afad6e5b5d769a7bdf1c654fb1ea32942c1
1:40PM ERR [git] fatal: not a git repository (or any of the parent directories): .git
1:40PM DBG 0 commits scanned. Note: this number might be smaller than expected due to commits with no additions

config
https://github.com/juju4/ansible-adduser/blob/da271afad6e5b5d769a7bdf1c654fb1ea32942c1/.github/workflows/lint.yml#L74

    steps:
      - uses: actions/checkout@v2
        with:
          path: ${{ env.ANSIBLE_ROLE }}
[...]
      - name: Gitleaks check
        uses: gitleaks/gitleaks-action@1f2d10fb689bc07a5f56f48d6db61f5bbbe772fa
        env:
          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
          GITLEAKS_ENABLE_SUMMARY: true
          GITLEAKS_ENABLE_COMMENTS: true
          GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false
        with:
          path: ${{ env.ANSIBLE_ROLE }}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant