elastic / elastic/logstash

Fix branch detection for snyk job since creation of 8.x branch

Open
#16,476 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
14.9k
Forks
3.5k
Avg merge
1d 4h
Merged PRs (30d)
88

Description

The creation of the 8.x branch and moving main to 9.0.0 caused the report.sh script for the snyk buildkite job incorrectly detect branches, and needs to be adjusted:

```
| Checking out 8.16 branch.
  | error: pathspec '8.16' did not match any file(s) known to git
  | 8.16 branch doesn't exist.
  | HEAD is now at a426e1b7f Known issue for 8.15.1 related to env vars references (#16455) (#16470)
  | Checking out 9.0 branch.
  | error: pathspec '9.0' did not match any file(s) known to git
  | 9.0 branch doesn't exist.
```

Contributor guide

Open the contributing guide

Research direction

Start with the report.sh script used by the Snyk Buildkite job and inspect how it derives branch names after the 8.x branch was created and main moved to 9.0.0. Reproduce the reported checkout messages and verify that the job detects and checks out the intended branches without the pathspec errors.

Written by the indexing model from the issue text.

Assessment

Tech stack
git, shell
Domain
ci-cd, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.