@prefix skos: <http://www.w3.org/2004/02/skos/core#> .
@prefix dcterms: <http://purl.org/dc/terms/> .
@prefix rdfs: <http://www.w3.org/2000/01/rdf-schema#> .
@prefix owl: <http://www.w3.org/2002/07/owl#> .
@prefix xsd: <http://www.w3.org/2001/XMLSchema#> .
@prefix foaf: <http://xmlns.com/foaf/0.1/> .
@prefix mcr: <https://registry.apicrafter.io/vocab#> .
@prefix dt: <https://registry.apicrafter.io/datatype/> .
@prefix cat: <https://registry.apicrafter.io/category/> .
@prefix country: <https://registry.apicrafter.io/country/> .
@prefix tool: <https://registry.apicrafter.io/tool/> .

dt:sonarqube_token a skos:Concept ;
    skos:inScheme <https://registry.apicrafter.io/> ;
    skos:notation "sonarqube_token" ;
    skos:prefLabel "SonarQube token"@en ;
    skos:definition "Token of SonarQube Server used to run an analysis or call the web API instead of a login and password. Current tokens start with one of the prefixes squ_, sqa_ and sqp_, which depend on the token type (user, global analysis or project analysis token), followed by 40 characters. Older tokens without a prefix are not covered by the regexp."@en ;
    skos:broader dt:access_token ;
    skos:example "squ_example0example0example0example0example0" ;
    mcr:status "draft" ;
    mcr:isPII false ;
    mcr:classification "identifier" ;
    mcr:regexp "^sq[uap]_[A-Za-z0-9=_-]{40}$" ;
    rdfs:seeAlso <https://docs.sonarsource.com/sonarqube-server/latest/user-guide/managing-tokens/> ;
    rdfs:seeAlso <https://docs.aws.amazon.com/secretsmanager/latest/userguide/mes-partner-SonarQubeToken.html> ;
    rdfs:seeAlso <https://github.com/gitleaks/gitleaks/blob/master/config/gitleaks.toml> .
