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

empty commit #34

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
version: 2.1

orbs:
codacy: codacy/[email protected].1
codacy: codacy/[email protected].2
codacy_plugins_test: codacy/[email protected]

jobs:
Expand Down
2 changes: 1 addition & 1 deletion .tool_version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
1.78.0
1.80.0
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
ARG TOOL_VERSION=1.78.0
ARG TOOL_VERSION=1.80.0

# Development image used to build the codacy-semgrep wrapper
# Explicitly adding go.mod and go.sum avoids re-downloading dependencies on every build
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ The docker is ran with the following command:
docker run -it -v $srcDir:/src codacy-semgrep:latest
```


## Generate Docs

1. Update the version in `.tool_version`
Expand Down
2 changes: 1 addition & 1 deletion internal/docgen/download.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ func downloadRepo(url string, commitUuid string) ([]SemgrepRuleFile, error) {

repo, err := git.PlainClone(tempFolder, false, &git.CloneOptions{
URL: url,
Depth: 10, // The commit we are fetching the rules from must be within the last 10 commits
Depth: 500, // The commit we are fetching the rules from must be within the last 10 commits
})
if err != nil {
return nil, &DocGenError{msg: fmt.Sprintf("Failed to clone repository: %s", url), w: err}
Expand Down
2 changes: 1 addition & 1 deletion internal/docgen/parsing.go
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ func semgrepRules(destinationDir string) ([]PatternWithExplanation, *ParsedSemgr
func getSemgrepRegistryRules() (*ParsedSemgrepRules, error) {
return getRules(
"https://github.com/semgrep/semgrep-rules",
"4ccd3b9cce2321a5fe3793868e4c2d4cfa5e9c43",
"1366b5ba8d7e733ea7f4b140087b78d6a7ef90a2",
isValidSemgrepRegistryRuleFile,
prefixRuleIDWithPath)
}
Expand Down