I have project on company Gitlab. Project is for iOS platform so my node for building project is Mac Mini with OS Sierra.
Runner works great - connecting etc works. But when I try to run pipeline I get message on node like on picture. This alert appear when gitlab runner wants to checkout code.
I checked in KeychainAccess that git-credential-osxkeychain app have access to password for gitlab on login keychain.
How to fix that and disable dialog for keychain password?
config.toml file:
concurrent = 1
check_interval = 0
[[runners]]
name = "Mac mini runner"
url = "URLtoMyGitLab"
token = "token"
executor = "shell"
[runners.cache]
GitLab stores user passwords in a hashed format to prevent passwords from being stored as plain text. GitLab uses the Devise authentication library to hash user passwords. Created password hashes have these attributes: Hashing: The bcrypt hashing function is used to generate the hash of the provided password.
GitLab Runner implements a number of executors that can be used to run your build. It determines the environment each job runs in. For example, If I want CI/CD job to run PowerShell commands, I might install GitLab Runner on a server and then register a runner that uses the shell executor.
For me the solution for this was to configure git, to use keychain in the project root.
- git config --global credential.helper osxkeychain
along with unlocking the keychain in before_script:
- security unlock-keychain -p $PASSWORD /Users/[MASKED]/Library/Keychains/login.keychain-db
- security set-keychain-settings -t 3600 -l /Users/[MASKED]/Library/Keychains/login.keychain-db
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With