go.mondoo.com/cnquery@v0.0.0-20231005093811-59568235f6ea/cli/execruntime/env_circle.go (about)

     1  // Copyright (c) Mondoo, Inc.
     2  // SPDX-License-Identifier: BUSL-1.1
     3  
     4  package execruntime
     5  
     6  const CIRCLE = "circle"
     7  
     8  // see https://circleci.com/docs/2.0/env-vars/#built-in-environment-variables
     9  var circleciEnv = &RuntimeEnv{
    10  	Id:        CIRCLE,
    11  	Name:      "CircleCI",
    12  	Namespace: "circleci.com",
    13  	Prefix:    "CIRCLE",
    14  	Identify: []Variable{
    15  		{
    16  			Name: "CIRCLECI",
    17  			Desc: "represents whether the current environment is a CircleCI environment",
    18  		},
    19  	},
    20  	Variables: []Variable{
    21  		{
    22  			Name: "CIRCLE_PULL_REQUEST",
    23  			Desc: "The URL of the associated pull request.",
    24  		},
    25  		{
    26  			Name: "CIRCLE_JOB",
    27  			Desc: "The name of the current job.",
    28  		},
    29  		{
    30  			Name: "CIRCLE_BUILD_NUM",
    31  			Desc: "The number of the current job. Job numbers are unique for each job.",
    32  		},
    33  		{
    34  			Name: "CIRCLE_BUILD_URL",
    35  			Desc: "The URL for the current build.",
    36  		},
    37  		{
    38  			Name: "CIRCLE_USERNAME",
    39  			Desc: "The GitHub or Bitbucket username of the user who triggered the build.",
    40  		},
    41  		{
    42  			Name: "CIRCLE_SHA1",
    43  			Desc: "The SHA1 hash of the last commit of the current build.",
    44  		},
    45  		{
    46  			Name: "CIRCLE_TAG",
    47  			Desc: "The name of the git tag, if the current build is tagged",
    48  		},
    49  		{
    50  			Name: "CIRCLE_REPOSITORY_URL",
    51  			Desc: "The URL of your GitHub or Bitbucket repository.",
    52  		},
    53  		{
    54  			Name: "CIRCLE_BRANCH",
    55  			Desc: "The name of the Git branch currently being built.",
    56  		},
    57  		{
    58  			Name: "CIRCLE_PROJECT_REPONAME",
    59  			Desc: "The repo name associated with this circle project.",
    60  		},
    61  		{
    62  			Name: "CIRCLE_PULL_REQUESTS",
    63  			Desc: "Comma-separated list of URLs of the current build’s associated pull requests.",
    64  		},
    65  		{
    66  			Name: "CIRCLE_WORKFLOW_ID",
    67  			Desc: "A unique identifier for the workflow instance of the current job. This identifier is the same for every job in a given workflow instance.",
    68  		},
    69  		{
    70  			Name: "CIRCLE_WORKFLOW_JOB_ID",
    71  			Desc: "A unique identifier for the current job.",
    72  		},
    73  		{
    74  			Name: "CIRCLE_WORKFLOW_WORKSPACE_ID",
    75  			Desc: "An identifier for the workspace of the current job. This identifier is the same for every job in a given workflow.",
    76  		},
    77  	},
    78  }