From 80f5d0d15f8d7ced767651978fb016072003f376 Mon Sep 17 00:00:00 2001 From: GitLab Bot Date: Mon, 16 Aug 2021 06:09:08 +0000 Subject: Add latest changes from gitlab-org/gitlab@master --- scripts/api/default_options.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 scripts/api/default_options.rb (limited to 'scripts/api/default_options.rb') diff --git a/scripts/api/default_options.rb b/scripts/api/default_options.rb new file mode 100644 index 00000000000..70fb9683733 --- /dev/null +++ b/scripts/api/default_options.rb @@ -0,0 +1,11 @@ +# frozen_string_literal: true + +module API + DEFAULT_OPTIONS = { + project: ENV['CI_PROJECT_ID'], + pipeline_id: ENV['CI_PIPELINE_ID'], + # Default to "CI scripts API usage" at https://gitlab.com/gitlab-org/gitlab/-/settings/access_tokens + api_token: ENV['PROJECT_TOKEN_FOR_CI_SCRIPTS_API_USAGE'], + endpoint: ENV['CI_API_V4_URL'] || 'https://gitlab.com/api/v4' + }.freeze +end -- cgit v1.2.3