I can build projects with my k8s runner just fine that are personal or under a group, but when I try to build a project in a sub-group it gets permission denied when trying to clone the gilab repo. All the answers on google mention adding my user as a Maintainer to the project or group, but since I created the group, sub-group, and project I’m already marked as the owner the newer gitlab UI won’t let my add myself with additional roles (not that that should be necessary). I’m using GitLab 13.3.0-ee.
remote: You are not allowed to download code from this project.
fatal: unable to access 'https://<repo redacted>.git/': The requested URL returned error: 403
.gitlab-ci.yml
stages:
- publish
- release
publish:
stage: publish
script:
- helm package --version $CI_COMMIT_TAG .
- 'curl -u ${HELM_USERNAME}:${HELM_PASSWORD} https://helm.<redacted>/repository/helm/ --upload-file ${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tgz'
artifacts:
paths:
- Chart.yaml
- '${CI_PROJECT_NAME}-${CI_COMMIT_TAG}.tgz'
only:
- tags
release:
stage: release
image: registry.gitlab.com/gitlab-org/release-cli:latest
script:
- echo 'running release for $CI_COMMIT_TAG'
release:
name: 'Release $CI_COMMIT_TAG'
description: 'release v$CI_COMMIT_TAG'
tag_name: 'v$CI_COMMIT_TAG'
ref: '$CI_COMMIT_TAG'
only:
- tags