# \#contexts

**URL:** https://discuss.circleci.com/tag/contexts/184.md

[Latest](https://discuss.circleci.com/latest.md) · [Categories](https://discuss.circleci.com/categories.md) · [Tags](https://discuss.circleci.com/tags.md)

---

## [Unable to inject Context variables into workflow initiated from fork](https://discuss.circleci.com/t/unable-to-inject-context-variables-into-workflow-initiated-from-fork/32878)

<div class="topic-metadata">

**Author:** [@dannyrb](https://discuss.circleci.com/u/dannyrb)\
**Replies:** 3\
**Last updated:** [November 10, 2024, 11:16pm UTC](https://discuss.circleci.com/t/unable-to-inject-context-variables-into-workflow-initiated-from-fork/32878 "2024-11-10T23:16:10Z")

</div>

I’m not sure where to post this topic, as it could be a bug, or simply my own misunderstanding. This CircleCI Blog post: Triggering trusted CI jobs on untrusted forks | CircleCI Ends with this snippet: Something new …

---

## [Get all variables from a context using the API](https://discuss.circleci.com/t/get-all-variables-from-a-context-using-the-api/31549)

<div class="topic-metadata">

**Author:** [@santiagomoneta](https://discuss.circleci.com/u/santiagomoneta)\
**Replies:** 5\
**Last updated:** [August 29, 2024, 7:23am UTC](https://discuss.circleci.com/t/get-all-variables-from-a-context-using-the-api/31549 "2024-08-29T07:23:47Z")

</div>

Hello community, im trying to do some automations and at some point I need to use the CircleCI API to see all the variables on my context and then add as needed. Looking at the documentation I see it talks about environm…

---

## [Context variables are not available for the build](https://discuss.circleci.com/t/context-variables-are-not-available-for-the-build/50668)

<div class="topic-metadata">

**Author:** [@ravichandrareddy-kal](https://discuss.circleci.com/u/ravichandrareddy-kal)\
**Replies:** 7\
**Last updated:** [March 4, 2024, 6:21pm UTC](https://discuss.circleci.com/t/context-variables-are-not-available-for-the-build/50668 "2024-03-04T18:21:26Z")

</div>

hi I am new to circle ci yml configs and i am using context as below but when i run the pipeline the context varaibles are not available for the pilepline. Any inputs will be much appreciated version: 2.1 defaults: &…

---

## [Project Restrictions API v2 endpoints now in open preview](https://discuss.circleci.com/t/project-restrictions-api-v2-endpoints-now-in-open-preview/50101)

<div class="topic-metadata">

**Author:** [@olafmol](https://discuss.circleci.com/u/olafmol)\
**Replies:** 8\
**Last updated:** [January 24, 2024, 4:34pm UTC](https://discuss.circleci.com/t/project-restrictions-api-v2-endpoints-now-in-open-preview/50101 "2024-01-24T16:34:08Z")

</div>

We are keeping the momentum going on improving our public API v2 endpoints, and have recently released new Project Restrictions for Contexts API v2 endpoints. These endpoints allow you to programmatically manage (list, …

---

## [How can I reduce redundancy when using Contexts?](https://discuss.circleci.com/t/how-can-i-reduce-redundancy-when-using-contexts/37935)

<div class="topic-metadata">

**Author:** [@stephen-torch](https://discuss.circleci.com/u/stephen-torch)\
**Replies:** 7\
**Last updated:** [November 30, 2023, 12:47am UTC](https://discuss.circleci.com/t/how-can-i-reduce-redundancy-when-using-contexts/37935 "2023-11-30T00:47:02Z")

</div>

When env variables are configured for a project they can be accessed anywhere in the project. This is unfortunately not the case for contexts. You have to specify the context required for each job individually. If you ha…

---

## [No access to contexts from jobs, UIs, or APIs](https://discuss.circleci.com/t/no-access-to-contexts-from-jobs-uis-or-apis/49111)

<div class="topic-metadata">

**Author:** [@rdiezsj](https://discuss.circleci.com/u/rdiezsj)\
**Replies:** 2\
**Last updated:** [September 6, 2023, 3:38pm UTC](https://discuss.circleci.com/t/no-access-to-contexts-from-jobs-uis-or-apis/49111 "2023-09-06T15:38:06Z")

</div>

There are problems in the platform for more than 36 hours: Contexts cannot be accessed, neither from the web UI, nor from the API. After several seconds loading, an error “Something Unexpected Happened” is displayed. C…

---

## [Unable to find context ID](https://discuss.circleci.com/t/unable-to-find-context-id/44886)

<div class="topic-metadata">

**Author:** [@Joshua\_Igoni](https://discuss.circleci.com/u/Joshua_Igoni)\
**Replies:** 3\
**Last updated:** [August 1, 2022, 7:11am UTC](https://discuss.circleci.com/t/unable-to-find-context-id/44886 "2022-08-01T07:11:46Z")

</div>

hi all, am currently trying to update an environment variable in a context in my organisation and according to the api reference: CircleCI API it says it is required that my context id has to be part of the path in the …

---

## [Contexts not applying](https://discuss.circleci.com/t/contexts-not-applying/43599)

<div class="topic-metadata">

**Author:** [@wschottler](https://discuss.circleci.com/u/wschottler)\
**Replies:** 1\
**Last updated:** [April 8, 2022, 7:12pm UTC](https://discuss.circleci.com/t/contexts-not-applying/43599 "2022-04-08T19:12:07Z")

</div>

So I am trying to take advantage of contexts for shared variables, but before I do to much work on it I setup a test context and confirm I understand how it all works. However I am unable to get any variables I put into …

---

## [Build a context value with a repo name](https://discuss.circleci.com/t/build-a-context-value-with-a-repo-name/42272)

<div class="topic-metadata">

**Author:** [@mysolo](https://discuss.circleci.com/u/mysolo)\
**Replies:** 2\
**Last updated:** [December 21, 2021, 10:01am UTC](https://discuss.circleci.com/t/build-a-context-value-with-a-repo-name/42272 "2021-12-21T10:01:07Z")

</div>

Hello Is there a parameter pipeline for the name of the Github repo? Or a way to build context from the name of repo github? In fact I need to build the context in the way: workflow: build: - build-oci-image:…

---

## [Limit scope of environment variable visibility in CI steps](https://discuss.circleci.com/t/limit-scope-of-environment-variable-visibility-in-ci-steps/41985)

<div class="topic-metadata">

**Author:** [@zbencz3](https://discuss.circleci.com/u/zbencz3)\
**Replies:** 1\
**Last updated:** [November 29, 2021, 11:09am UTC](https://discuss.circleci.com/t/limit-scope-of-environment-variable-visibility-in-ci-steps/41985 "2021-11-29T11:09:51Z")

</div>

Hi, I am looking into ways to make the CircleCI environment variables scope restricted as much as possible. This is partially driven by the Codecov incident earlier this year: https://about.codecov.io/security-update/ C…

---

## [Automate Your API Key Rotation Using the Contexts REST API](https://discuss.circleci.com/t/automate-your-api-key-rotation-using-the-contexts-rest-api/39540)

<div class="topic-metadata">

**Author:** [@thekatertot](https://discuss.circleci.com/u/thekatertot)\
**Replies:** 2\
**Last updated:** [October 26, 2021, 8:20pm UTC](https://discuss.circleci.com/t/automate-your-api-key-rotation-using-the-contexts-rest-api/39540 "2021-10-26T20:20:57Z")

</div>

Today, we’re officially releasing our new Contexts REST API. With the new REST API, teams can securely rotate secrets automatically and atomically, which is especially useful if you have a lot of repositories, projects,…

---

## [Contexts security for Bitbucket users](https://discuss.circleci.com/t/contexts-security-for-bitbucket-users/40143)

<div class="topic-metadata">

**Author:** [@nishantyedla](https://discuss.circleci.com/u/nishantyedla)\
**Replies:** 1\
**Last updated:** [June 16, 2021, 3:33pm UTC](https://discuss.circleci.com/t/contexts-security-for-bitbucket-users/40143 "2021-06-16T15:33:46Z")

</div>

We use bitbucket to login into circle and since circle integration with bitbucket doesn’t list groups we are not able to setup any restriction over contexts. It would be nice if we can atleast manually create groups and …

---

## [Initial run fails with 'Unathorized' but a a rerun form the CircleCi GUI will run successfully](https://discuss.circleci.com/t/initial-run-fails-with-unathorized-but-a-a-rerun-form-the-circleci-gui-will-run-successfully/39233)

<div class="topic-metadata">

**Author:** [@davidcaughill](https://discuss.circleci.com/u/davidcaughill)\
**Replies:** 3\
**Last updated:** [February 25, 2021, 1:02pm UTC](https://discuss.circleci.com/t/initial-run-fails-with-unathorized-but-a-a-rerun-form-the-circleci-gui-will-run-successfully/39233 "2021-02-25T13:02:17Z")

</div>

I’ve added a shared context to our CircleCI account, added that to a specific build workflow, checked that it is NOT restricted and that it was done using a github user with full org admin access. However, when the pipel…

---

## [\[deleted-deleted\]](https://discuss.circleci.com/t/deleted-deleted/35982)

<div class="topic-metadata">

**Author:** [@dimaqq-cci](https://discuss.circleci.com/u/dimaqq-cci)\
**Replies:** 3\
**Last updated:** [May 25, 2020, 12:38pm UTC](https://discuss.circleci.com/t/deleted-deleted/35982 "2020-05-25T12:38:21Z")

</div>

\[deleted-deleted-deleted-deleted\]

---

## [circleCI manual approval on build](https://discuss.circleci.com/t/circleci-manual-approval-on-build/35611)

<div class="topic-metadata">

**Author:** [@gangadhar](https://discuss.circleci.com/u/gangadhar)\
**Replies:** 3\
**Last updated:** [May 4, 2020, 3:46pm UTC](https://discuss.circleci.com/t/circleci-manual-approval-on-build/35611 "2020-05-04T15:46:23Z")

</div>

I have a question specific to manual approval of the build, we have following workflow in circleCI config. Users manually need to approve “approve\_qa” in order to proceed with the “deploy\_qa” job. workflows: version: 2 …

---

## [GitHub Groups Missing (Contexts)](https://discuss.circleci.com/t/github-groups-missing-contexts/31821)

<div class="topic-metadata">

**Author:** [@yippie](https://discuss.circleci.com/u/yippie)\
**Replies:** 3\
**Last updated:** [November 25, 2019, 9:08pm UTC](https://discuss.circleci.com/t/github-groups-missing-contexts/31821 "2019-11-25T21:08:15Z")

</div>

When making a new context, there is an option to restrict to a group. However, only about half of our organizations github groups are selectable, the rest are simply missing. How can I select the groups I need if they a…

---

## [Environment variable not being updated or read](https://discuss.circleci.com/t/environment-variable-not-being-updated-or-read/33355)

<div class="topic-metadata">

**Author:** [@skk2142](https://discuss.circleci.com/u/skk2142)\
**Replies:** 2\
**Last updated:** [November 15, 2019, 10:47pm UTC](https://discuss.circleci.com/t/environment-variable-not-being-updated-or-read/33355 "2019-11-15T22:47:50Z")

</div>

I am facing two related issues. The existing environment variable in the global context, when updated, is not reflected in the machine when I run the job. I tried to restart the machine and it still didn’t work. I trie…

---

## [Updating context environment variables during build?](https://discuss.circleci.com/t/updating-context-environment-variables-during-build/29779)

<div class="topic-metadata">

**Author:** [@erodewald](https://discuss.circleci.com/u/erodewald)\
**Replies:** 2\
**Last updated:** [April 13, 2019, 7:31pm UTC](https://discuss.circleci.com/t/updating-context-environment-variables-during-build/29779 "2019-04-13T19:31:21Z")

</div>

Part of my workflow is to generate user tokens for functional testing but we require a refresh\_token which must be updated after each use. I am using an organization “Context” to store environment variables – is it possi…

---

## [Multiple Contexts](https://discuss.circleci.com/t/multiple-contexts/24848)

<div class="topic-metadata">

**Author:** [@bacoboy](https://discuss.circleci.com/u/bacoboy)\
**Replies:** 8\
**Last updated:** [December 12, 2018, 5:44pm UTC](https://discuss.circleci.com/t/multiple-contexts/24848 "2018-12-12T17:44:43Z")

</div>

I’m splitting some secrets for things like github, dockerhub, etc into different contexts, but it appears I can only specify one context per job. Am I missing something obvious? Couldn’t find an example with multiples. …

---

## [Contexts permissions documentation](https://discuss.circleci.com/t/contexts-permissions-documentation/25284)

<div class="topic-metadata">

**Author:** [@goetas](https://discuss.circleci.com/u/goetas)\
**Replies:** 3\
**Last updated:** [October 24, 2018, 7:00am UTC](https://discuss.circleci.com/t/contexts-permissions-documentation/25284 "2018-10-24T07:00:21Z")

</div>

Is there some documentation where I can find which GitHub permissions do I need to grant to an user to be able to access/edit Circle CI Contexts? Currently says “To view/edit this page, you must be an organization membe…

---

## [Only Org Owners can access the context page](https://discuss.circleci.com/t/only-org-owners-can-access-the-context-page/25603)

<div class="topic-metadata">

**Author:** [@goetas](https://discuss.circleci.com/u/goetas)\
**Replies:** 1\
**Last updated:** [October 9, 2018, 6:03pm UTC](https://discuss.circleci.com/t/only-org-owners-can-access-the-context-page/25603 "2018-10-09T18:03:19Z")

</div>

Currently only Github Owners can access the Context page. The documentation is not really precise: Organization Membership Needed To view / edit this page, you must have an organization member with push permissions o…

---

## [I can not edit the page of Contexts, because of "Organization Membership Needed"](https://discuss.circleci.com/t/i-can-not-edit-the-page-of-contexts-because-of-organization-membership-needed/25168)

<div class="topic-metadata">

**Author:** [@fs-kitamura](https://discuss.circleci.com/u/fs-kitamura)\
**Replies:** 6\
**Last updated:** [September 18, 2018, 1:02am UTC](https://discuss.circleci.com/t/i-can-not-edit-the-page-of-contexts-because-of-organization-membership-needed/25168 "2018-09-18T01:02:06Z")

</div>

I can not edit the page of Contexts. It was edited on the Contexts page until a few days ago. But now Organization Membership Needed To view / edit this page, you must have an organization member with push permissions…

---

## [Unable to view contexts in UI](https://discuss.circleci.com/t/unable-to-view-contexts-in-ui/24890)

<div class="topic-metadata">

**Author:** [@domudall](https://discuss.circleci.com/u/domudall)\
**Replies:** 4\
**Last updated:** [September 17, 2018, 12:03pm UTC](https://discuss.circleci.com/t/unable-to-view-contexts-in-ui/24890 "2018-09-17T12:03:45Z")

</div>

Hi, Currently the contexts section in my org is telling me I need owner permissions, which I already have. I found a similar report that stated it was a known bug and to “reach out to the team” but with no methods to re…

---

## [Context lost when adjusting Github third party security](https://discuss.circleci.com/t/context-lost-when-adjusting-github-third-party-security/24845)

<div class="topic-metadata">

**Author:** [@eiad](https://discuss.circleci.com/u/eiad)\
**Replies:** 0\
**Last updated:** [August 31, 2018, 7:28pm UTC](https://discuss.circleci.com/t/context-lost-when-adjusting-github-third-party-security/24845 "2018-08-31T19:28:39Z")

</div>

Does anyone have a work around to restore a context that may have been lost when turning on Github third party security? Even when we disabled this, it seems like our context is lost. In addition, the context now says: …

---

## [Delete context](https://discuss.circleci.com/t/delete-context/20240)

<div class="topic-metadata">

**Author:** [@hi-im-si](https://discuss.circleci.com/u/hi-im-si)\
**Replies:** 1\
**Last updated:** [February 22, 2018, 7:09pm UTC](https://discuss.circleci.com/t/delete-context/20240 "2018-02-22T19:09:54Z")

</div>

I created a context as outlined here: https://circleci.com/docs/2.0/contexts/#creating-and-using-a-context but with no name. I then attempted to delete it but I am unable to do so. My devtools console returns the follow…

---

## [All builds fail with 'Circle Bug'](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514)

<div class="topic-metadata">

**Author:** [@helaoban](https://discuss.circleci.com/u/helaoban)\
**Replies:** 1\
**Last updated:** [December 4, 2017, 6:16pm UTC](https://discuss.circleci.com/t/all-builds-fail-with-circle-bug/18514 "2017-12-04T18:16:08Z")

</div>

Hey Circle dudes, Since yesterday all of my builds have been failing with the following error message: Looks like we had a bug in our infrastructure, or that of our providers (generally GitHub or AWS). We should have …

---

## [Use contexts with docker auth](https://discuss.circleci.com/t/use-contexts-with-docker-auth/15611)

<div class="topic-metadata">

**Author:** [@galindro](https://discuss.circleci.com/u/galindro)\
**Replies:** 1\
**Last updated:** [August 22, 2017, 7:42pm UTC](https://discuss.circleci.com/t/use-contexts-with-docker-auth/15611 "2017-08-22T19:42:47Z")

</div>

Is it possible to use contexts variables with docker auth? I'm trying to use them with this config.yml, but an error message is displayed: defaults: &defaults working\_directory: /tmp docker: - image: myorg/…

---

## [Unconfigured context causes repeated build failures](https://discuss.circleci.com/t/unconfigured-context-causes-repeated-build-failures/15148)

<div class="topic-metadata">

**Author:** [@TheKevJames](https://discuss.circleci.com/u/TheKevJames)\
**Replies:** 0\
**Last updated:** [August 7, 2017, 3:26pm UTC](https://discuss.circleci.com/t/unconfigured-context-causes-repeated-build-failures/15148 "2017-08-07T15:26:51Z")

</div>

Setting context: org-global in workflows before the organization has configured their first context repeatably causes "Looks like we had a bug in our infrastructure...". Removing the key seems to fix it. See https://ci…
