-
Notifications
You must be signed in to change notification settings - Fork 278
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
mattermost-10.3/10.3.1-r0: cve remediation #38143
base: main
Are you sure you want to change the base?
mattermost-10.3/10.3.1-r0: cve remediation #38143
Conversation
Gen AI suggestions to solve the build error: Based on the error output, I'll analyze and provide a solution: • Detected Error:
(The command seems to fail silently) • Error Category: Version/Git Checkout • Failure Point: git-checkout pipeline step • Root Cause Analysis: The git checkout is failing because the tag v10.3.1 doesn't exist in the repository or there's a mismatch between the tag and commit hash • Suggested Fix:
- uses: git-checkout
with:
repository: https://github.com/mattermost/mattermost
tag: v10.3.1
expected-commit: 88989b2d73eeed4d99c18de79358ac94c634f0e5 # Update with correct commit • Explanation: • Additional Notes:
• References:
|
da9ec8b
to
fc7d57e
Compare
Gen AI suggestions to solve the build error: • Detected Error: "go: go.mod file not found in current directory or any parent directory; see 'go help modules'" • Error Category: Build Configuration • Failure Point: The go/bump step failing to execute go mod tidy due to missing go.mod file • Root Cause Analysis: The go/bump step is being executed in the wrong directory. The go.mod file exists in the server directory, but the step is being run from the root directory. • Suggested Fix: pipeline:
- uses: git-checkout
with:
repository: https://github.com/mattermost/mattermost
tag: v${{package.version}}
expected-commit: af1560dea70d1e5575932ee07093fb40ad37d925
# Remove this go/bump step from here
# - uses: go/bump
# with:
# deps: github.com/mattermost/mattermost/server/v8@v8.1.11
- runs: |
mkdir -p ${{targets.contextdir}}/usr/bin
for dir in bin data logs config plugins fonts i18n templates client test; do
mkdir -p ${{targets.contextdir}}/etc/mattermost/$dir
done
- working-directory: server
pipeline:
- uses: go/bump
with:
deps: |
github.com/mattermost/mattermost/server/v8@v8.1.11
golang.org/x/crypto@v0.31.0
golang.org/x/net@v0.33.0
modroot: .
tidy: false • Explanation: The build is failing because the go/bump step can't find the go.mod file since it's looking in the wrong directory. The go.mod file is located in the server directory, so all Go module operations need to be performed there. • Additional Notes:
• References:
|
mattermost-10.3/10.3.1-r0: fix GHSA-xp9j-8p68-9q93
Advisory data: https://github.com/wolfi-dev/advisories/blob/main/mattermost-10.3.advisories.yaml