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

fix(manager/gitlabci): clean more than one slash #17132

Merged
merged 3 commits into from Aug 14, 2022

Conversation

hasanwhitesource
Copy link
Contributor

@hasanwhitesource hasanwhitesource commented Aug 11, 2022

Changes

Clear more than one slash from the include block in gitlabci.

Context

According to https://gitlab.com/gitlab-org/gitlab/-/issues/28987#note_392419953 there can be more than one slash.
Currently renovate is giving "Preventing access to file outside the base directory" error.
If we take care of extra slashes we are able to detect the dependencies without and error :
Ran on: https://gitlab.com/hasan.awad/myfirsttestdata
image
Closes #16600

Documentation (please check one with an [x])

  • I have updated the documentation, or
  • No documentation update is required

How I've tested my work (please tick one)

I have verified these changes via:

  • Code inspection only, or
  • Newly added/modified unit tests, or
  • Both unit tests + ran on a real repository
  • No unit tests but ran on a real repository, or

@hasanwhitesource hasanwhitesource marked this pull request as ready for review August 11, 2022 08:18
rarkins
rarkins previously approved these changes Aug 11, 2022
@rarkins rarkins enabled auto-merge (squash) August 11, 2022 13:01
lib/modules/manager/gitlabci/extract.ts Outdated Show resolved Hide resolved
lib/modules/manager/gitlabci/extract.ts Outdated Show resolved Hide resolved
@viceice
Copy link
Member

viceice commented Aug 11, 2022

https://github.com/renovatebot/renovate/blob/main/lib/util/url.ts#L30

should probably remove also multiple leading slashes

@hasanwhitesource
Copy link
Contributor Author

@viceice don't think this will work since that only trims 1 slash

@hasanwhitesource
Copy link
Contributor Author

Change this in the same pr ? 🤔

@viceice
Copy link
Member

viceice commented Aug 11, 2022

Change this in the same pr ? 🤔

sure, it's a very small change and probably expected. If it fails too many tests then we should do in seperate PR

auto-merge was automatically disabled August 12, 2022 11:23

Head branch was pushed to by a user without write access

@rarkins rarkins enabled auto-merge (squash) August 14, 2022 15:46
@rarkins rarkins merged commit 719ab9b into renovatebot:main Aug 14, 2022
@renovate-release
Copy link
Collaborator

🎉 This PR is included in version 32.159.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Sep 14, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[gitlab-ci] Filesystem access violation with .gitlab-ci.yml
4 participants