AWS access key and password leak from private GitLab repository

By mistake I stored aws access key and password in gitlab. Even though it is a private repository. My aws account got compromised. Is gitlab is not secure to store access key and password ?

@yajana.merahkee More information is needed. Where did you store them? Were they output to a job log as variables without being masked?