You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: content/actions/security-for-github-actions/security-hardening-your-deployments/configuring-openid-connect-in-jfrog.md
+34-41Lines changed: 34 additions & 41 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -47,59 +47,52 @@ To use OIDC with JFrog, establish a trust relationship between {% data variables
47
47
48
48
## Updating your {% data variables.product.prodname_actions %} workflow
49
49
50
-
Once you establish a trust relationship between {% data variables.product.prodname_actions %} and the JFrog platform, you can update your {% data variables.product.prodname_actions %} workflow file.
50
+
### Authenticating with JFrog using OIDC
51
51
52
52
In your {% data variables.product.prodname_actions %} workflow file, ensure you are using the provider name and audience you configured in the JFrog Platform.
53
53
54
-
The following example uses the placeholder`YOUR_PROVIDER_NAME`.
54
+
The following example uses the placeholders`YOUR_PROVIDER_NAME` and `YOUR_AUDIENCE`.
Alternatively, you can set the audience as an environment variable using the `env` context. For more information about the `env` context, see [AUTOTITLE](/actions/learn-github-actions/contexts#env-context).
83
-
84
-
{% data reusables.actions.oidc-deployment-protection-rules %}
Then, in your workflow file, retrieve the value of the variables stored in the `env` context. The following example uses the `env` context to retrieve the OIDC audience.
78
+
> [!TIP]
79
+
> When OIDC authentication is used, the `setup-jfrog-cli` action automatically provides `oidc-user` and `oidc-token` as step outputs.
80
+
> These can be used for other integrations that require authentication with JFrog.
81
+
> To reference these outputs, ensure the step has an explicit `id` defined (for example `id: setup-jfrog-cli`).
95
82
83
+
### Using OIDC Credentials in other steps
96
84
```yaml
97
-
- name: Get ID Token (using env context)
98
-
uses: {% data reusables.actions.action-github-script %}
99
-
id: idtoken
85
+
- name: Sign in to Artifactory Docker registry
86
+
uses: docker/login-action@v3
100
87
with:
101
-
script: |
102
-
const coredemo = require('@actions/core');
103
-
let id_token = await coredemo.getIDToken(process.env.OIDC_AUDIENCE);
- [OpenID Connect Integration](https://jfrog.com/help/r/jfrog-platform-administration-documentation/openid-connect-integration) in the JFrog documentation
96
+
- [Identity Mappings](https://jfrog.com/help/r/jfrog-platform-administration-documentation/identity-mappings) in the JFrog documentation
Copy file name to clipboardExpand all lines: content/copilot/using-github-copilot/ai-models/changing-the-ai-model-for-copilot-chat.md
+8-8Lines changed: 8 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -49,7 +49,7 @@ For more information about these models, see [AUTOTITLE](/copilot/using-github-c
49
49
50
50
Experimental pre-release versions of the models may not interact with all filters correctly, including the duplication detection filter.
51
51
52
-
## Changing your AI model
52
+
## Changing the AI model
53
53
54
54
These instructions are for {% data variables.product.prodname_copilot_short %} on the {% data variables.product.github %} website. For instructions on different clients, click the appropriate tab at the top of this page.
55
55
@@ -94,9 +94,9 @@ The following models are currently available through multi-model {% data variabl
94
94
95
95
For more information about these models, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task).
96
96
97
-
## Changing your AI model
97
+
## Changing the AI model
98
98
99
-
These instructions are for {% data variables.product.prodname_vscode_shortname %}. For instructions on different clients, click the appropriate tab at the top of this page.
99
+
These instructions are for {% data variables.product.prodname_vscode %}. For instructions on different clients, click the appropriate tab at the top of this page.
100
100
101
101
{% data reusables.copilot.model-picker-enable-alternative-models %}
102
102
@@ -128,7 +128,7 @@ The following models are currently available through multi-model {% data variabl
128
128
129
129
For more information about these models, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task).
130
130
131
-
## Changing the AI model for {% data variables.copilot.copilot_chat_short %}
131
+
## Changing the AI model
132
132
133
133
These instructions are for {% data variables.product.prodname_vs %}. For instructions on different clients, click the appropriate tab at the top of this page.
134
134
@@ -168,7 +168,7 @@ The following models are currently available through multi-model {% data variabl
168
168
169
169
For more information about these models, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task).
170
170
171
-
## Changing the AI model for {% data variables.copilot.copilot_chat_short %}
171
+
## Changing the AI model
172
172
173
173
These instructions are for the JetBrains IDEs. For instructions on different clients, click the appropriate tab at the top of this page.
174
174
@@ -178,7 +178,7 @@ These instructions are for the JetBrains IDEs. For instructions on different cli
178
178
179
179
1. Click the **{% octicon "copilot" aria-hidden="true" aria-label="copilot" %}** icon in the status bar.
180
180
1. In the popup menu, click **Open {% data variables.copilot.copilot_chat %}**.
181
-
1. In the bottom right of the chat view, select an AI model of your choice from the {% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu.
181
+
1. In the bottom right of the chat view, select an AI model of your choice from the **CURRENT-MODEL**{% octicon "chevron-down" aria-hidden="true" aria-label="chevron-down" %} dropdown menu, then click the AI model of your choice.
182
182
183
183
{% endjetbrains %}
184
184
@@ -207,7 +207,7 @@ The following models are currently available through multi-model {% data variabl
207
207
208
208
For more information about these models, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task).
209
209
210
-
## Changing the AI model for {% data variables.copilot.copilot_chat_short %}
210
+
## Changing the AI model
211
211
212
212
These instructions are for the Eclipse IDE. For instructions on different clients, click the appropriate tab at the top of this page.
213
213
@@ -246,7 +246,7 @@ The following models are currently available through multi-model {% data variabl
246
246
247
247
For more information about these models, see [AUTOTITLE](/copilot/using-github-copilot/ai-models/choosing-the-right-ai-model-for-your-task).
248
248
249
-
## Changing the AI model for {% data variables.copilot.copilot_chat_short %}
249
+
## Changing the AI model
250
250
251
251
These instructions are for Xcode. For instructions on different clients, click the appropriate tab at the top of this page.
Copy file name to clipboardExpand all lines: content/copilot/using-github-copilot/ai-models/using-gemini-in-github-copilot.md
+2-1Lines changed: 2 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,6 +19,7 @@ redirect_from:
19
19
20
20
* {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %}
21
21
* Immersive mode in {% data variables.copilot.copilot_chat_short %} in {% data variables.product.github %}
22
+
* {% data variables.copilot.copilot_chat_short %} in JetBrains IDEs
22
23
23
24
{% data variables.product.prodname_copilot %} uses {% data variables.copilot.copilot_gemini_flash %} and {% data variables.copilot.copilot_gemini_25_pro %} hosted on Google Cloud Platform (GCP). When using {% data variables.copilot.copilot_gemini %} models, prompts and metadata are sent to GCP, which makes the [following data commitment](https://cloud.google.com/gemini/docs/discover/data-governance): _{% data variables.copilot.copilot_gemini %} doesn't use your prompts, or its responses, as data to train its models._
24
25
@@ -34,7 +35,7 @@ You must enable access to {% data variables.copilot.copilot_gemini_flash %} and
34
35
35
36
> [!NOTE] {% data variables.copilot.copilot_gemini_25_pro %} is not currently available for {% data variables.copilot.copilot_free_short %}.
36
37
37
-
If you have a {% data variables.copilot.copilot_free_short %}, {% data variables.copilot.copilot_pro_short %}, or {% data variables.copilot.copilot_pro_plus_short %} subscription, you can enable {% data variables.copilot.copilot_gemini %} in two ways:
38
+
If you have a {% data variables.copilot.copilot_free_short %}, {% data variables.copilot.copilot_pro_short %}, or {% data variables.copilot.copilot_pro_plus_short %} subscription, you can enable the {% data variables.copilot.copilot_gemini %} models available to your plan in two ways:
38
39
39
40
* The first time you choose to use {% data variables.copilot.copilot_gemini %} models with {% data variables.copilot.copilot_chat_short %} in {% data variables.product.prodname_vscode %}, or in the immersive view of {% data variables.copilot.copilot_chat_short %}, you will be prompted to allow access to the model.
Use these workflows as a starting place to build your custom workflow or use them as-is. You can browse the full list of workflow templates in the [actions/starter-workflows](https://github.com/actions/starter-workflows) repository. For more information, see [AUTOTITLE](/actions/writing-workflows/using-starter-workflows).
1
+
Use these workflows as a starting place to build your custom workflow or use them as-is. You can browse the full list of workflow templates in the [actions/starter-workflows](https://github.com/actions/starter-workflows) repository.
0 commit comments