Skip to content

Conversation

@guilhermepaulozup
Copy link
Contributor

Signed-off-by: guilhermepaulozup guilherme.paulo@zup.com.br

- What I did
Added a call to os.PathSeparator to isFileFromGitFolder to form a .git/ path.

This way the engine can properly differentiate between the .git/ directory and .github/ directory (used in Github Actions) files.

- How to verify it

Running horusec start --log-level="debug" should properly read the files in .github/workflows/ folder.

- Description for the changelog
Changed isFileFromGitFolder to include on the return: ".git"+string(os.PathSeparator)

Signed-off-by: guilhermepaulozup <guilherme.paulo@zup.com.br>
@wiliansilvazup wiliansilvazup merged commit a14c844 into ZupIT:main Jun 9, 2022
ne0z pushed a commit to ne0z/horusec-engine that referenced this pull request Jun 23, 2022
Signed-off-by: guilhermepaulozup <guilherme.paulo@zup.com.br>
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

Successfully merging this pull request may close these issues.

2 participants