Skip to content

Commit d2bb61c

Browse files
authored
[Improvement]: Fix JFrog OIDC docs #20604 (#59399)
1 parent b82aea0 commit d2bb61c

File tree

5 files changed

+8
-21
lines changed

5 files changed

+8
-21
lines changed

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-azure.md

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@ The [`azure/login`](https://github.com/Azure/login) action receives a JWT from t
7777

7878
The following example exchanges an OIDC ID token with Azure to receive an access token, which can then be used to access cloud resources.
7979

80-
8180
```yaml copy
8281
{% data reusables.actions.actions-not-certified-by-github-comment %}
8382
name: Run Azure Login with OIDC
@@ -93,9 +92,9 @@ jobs:
9392
- name: 'Az CLI login'
9493
uses: azure/login@8c334a195cbb38e46038007b304988d888bf676a
9594
with:
96-
client-id: ${{ secrets.AZURE_CLIENT_ID }}
97-
tenant-id: ${{ secrets.AZURE_TENANT_ID }}
98-
subscription-id: ${{ secrets.AZURE_SUBSCRIPTION_ID }}
95+
client-id: {% raw %}${{ secrets.AZURE_CLIENT_ID }}{% endraw %}
96+
tenant-id: {% raw %}${{ secrets.AZURE_TENANT_ID }}{% endraw %}
97+
subscription-id: {% raw %}${{ secrets.AZURE_SUBSCRIPTION_ID }}{% endraw %}
9998

10099
- name: 'Run az commands'
101100
run: |

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-google-cloud-platform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ jobs:
103103
- id: 'gcloud'
104104
name: 'gcloud'
105105
run: |-
106-
gcloud auth login --brief --cred-file="${{ steps.auth.outputs.credentials_file_path }}"
106+
gcloud auth login --brief --cred-file="{% raw %}${{ steps.auth.outputs.credentials_file_path }}{% endraw %}"
107107
gcloud services list
108108
```
109109

content/actions/how-tos/secure-your-work/security-harden-deployments/oidc-in-jfrog.md

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ jobs:
6969
id: setup-jfrog-cli
7070
uses: jfrog/setup-jfrog-cli@29fa5190a4123350e81e2a2e8d803b2a27fed15e
7171
with:
72-
JF_URL: ${{ env.JF_URL }}
72+
JF_URL: {% raw %}${{ env.JF_URL }}{% endraw %}
7373
oidc-provider-name: 'YOUR_PROVIDER_NAME'
7474
oidc-audience: 'YOUR_AUDIENCE' # This is optional
7575

@@ -85,20 +85,16 @@ jobs:
8585
8686
### Using OIDC Credentials in other steps
8787

88-
{% raw %}
89-
9088
```yaml
9189
{% data reusables.actions.actions-not-certified-by-github-comment %}
9290
- name: Sign in to Artifactory Docker registry
9391
uses: docker/login-action@v3
9492
with:
95-
registry: ${{ env.JF_URL }}
96-
username: ${{ steps.setup-jfrog-cli.outputs.oidc-user }}
97-
password: ${{ steps.setup-jfrog-cli.outputs.oidc-token }}
93+
registry: {% raw %}${{ env.JF_URL }}{% endraw %}
94+
username: {% raw %}${{ steps.setup-jfrog-cli.outputs.oidc-user }}{% endraw %}
95+
password: {% raw %}${{ steps.setup-jfrog-cli.outputs.oidc-token }}{% endraw %}
9896
```
9997
100-
{% endraw %}
101-
10298
## Further reading
10399
104100
* [OpenID Connect Integration](https://jfrog.com/help/r/jfrog-platform-administration-documentation/openid-connect-integration) in the JFrog documentation

content/actions/tutorials/build-and-test-code/ruby.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -187,8 +187,6 @@ The `setup-ruby` actions provides a method to automatically handle the caching o
187187

188188
To enable caching, set the following.
189189

190-
{% raw %}
191-
192190
```yaml
193191
{% data reusables.actions.actions-not-certified-by-github-comment %}
194192
steps:
@@ -197,8 +195,6 @@ steps:
197195
bundler-cache: true
198196
```
199197

200-
{% endraw %}
201-
202198
This will configure bundler to install your gems to `vendor/cache`. For each successful run of your workflow, this folder will be cached by {% data variables.product.prodname_actions %} and re-downloaded for subsequent workflow runs. A hash of your `gemfile.lock` and the Ruby version are used as the cache key. If you install any new gems, or change a version, the cache will be invalidated and bundler will do a fresh install.
203199

204200
**Caching without setup-ruby**

content/actions/tutorials/build-and-test-code/swift.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,6 @@ jobs:
124124

125125
You can configure your job to use a single specific version of Swift, such as `5.3.3`.
126126

127-
{% raw %}
128-
129127
```yaml copy
130128
{% data reusables.actions.actions-not-certified-by-github-comment %}
131129
steps:
@@ -136,8 +134,6 @@ steps:
136134
run: swift --version # Swift 5.3.3
137135
```
138136

139-
{% endraw %}
140-
141137
## Building and testing your code
142138

143139
You can use the same commands that you use locally to build and test your code using Swift. This example demonstrates how to use `swift build` and `swift test` in a job:

0 commit comments

Comments
 (0)