Skip to content

Commit

Permalink
chore: add id_request to reference YAML docs
Browse files Browse the repository at this point in the history
  • Loading branch information
ecrupper committed Oct 8, 2024
1 parent ee89aaf commit 078bdaf
Show file tree
Hide file tree
Showing 16 changed files with 43 additions and 31 deletions.
22 changes: 17 additions & 5 deletions content/reference/yaml/steps.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,16 @@ steps:
| `image` | Y | string | Docker image used to create ephemeral container. |
| `pull` | N | string | Declaration to configure if and when the Docker image is pulled. |
| `secrets` | N | struct | Sensitive variables injected into the container environment. |
| `environment` | N | map || []string | Variables to inject into the container environment. |
| `environment` | N | map OR []string | Variables to inject into the container environment. |
| `ruleset` | N | struct | Conditions to limit the execution of the container. |
| `parameters` | N | map | Extra configuration variables specific to a plugin. |
| `commands` | N | []string | Execution instructions to run inside the container. |
| `template` | N | struct | Name of a template to expand in the pipeline. |
| `template` | N | struct | Name of a template to expand in the pipeline. |
| `id_request` | N | string | Injects `VELA_ID_TOKEN_REQUEST_TOKEN` into step environment. |
| `entrypoint` | N | []string | Commands to execute inside the container. |
| `detach` | N | []string | Run the container in a detached (headless) state. | |
| `ulimits` | N | string | Set the user limits for the container. | |
| `user` | N | string | Set the user for the container. |
| `detach` | N | []string | Run the container in a detached (headless) state. |
| `ulimits` | N | string | Set the user limits for the container. |
| `user` | N | string | Set the user for the container. |

### Usage

Expand Down Expand Up @@ -395,6 +396,17 @@ steps:
A pipeline can have up to 10 steps that report their own status.
{{% /alert %}}
#### The `id_request` key

```yaml
steps:
# inject $VELA_ID_TOKEN_REQUEST_TOKEN into step environment. Value of `id_request` becomes one of the claims in the token.
- name: OIDC
id_request: write
```
More info can be found in the [OpenID Connect usage docs](usage/open_id_connect/).
#### The `entrypoint:` key

```yaml
Expand Down
4 changes: 2 additions & 2 deletions layouts/community/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/faq/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/installation/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/plugins/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/reference/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/templates/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/tour/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions layouts/usage/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
4 changes: 2 additions & 2 deletions themes/docsy/layouts/_default/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
<h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/blog/content.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ <h1>{{ .Title }}</h1>
<time datetime="{{ $.Date.Format "2006-01-02" }}" class="text-muted">{{ $.Date.Format $.Site.Params.time_format_blog }}</time>
</div>
{{ .Content }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
<br />
Expand Down
4 changes: 2 additions & 2 deletions themes/docsy/layouts/docs/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/disqus-comment.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
*/
(function() { // DON'T EDIT BELOW THIS LINE
var d = document, s = d.createElement('script');
s.src = 'https://' + {{ .Site.DisqusShortname }} + '.disqus.com/embed.js';
s.src = 'https://' + {{ .Site.Config.Services.Disqus.Shortname }} + '.disqus.com/embed.js';
s.setAttribute('data-timestamp', +new Date());
(d.head || d.body).appendChild(s);
})();
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/head-css.html
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@

{{ $scssMain := "scss/main.scss"}}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
{{/* Note the missing postCSS. This makes it snappier to develop in Chrome, but makes it look sub-optimal in other browsers. */}}
{{ $css := resources.Get $scssMain | toCSS (dict "enableSourceMap" true) }}
<link href="{{ $css.RelPermalink }}" rel="stylesheet">
Expand Down
2 changes: 1 addition & 1 deletion themes/docsy/layouts/partials/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
{{ $jsAnchor := resources.Get "js/anchor.js" }}
{{ $jsSearch := resources.Get "js/search.js" | resources.ExecuteAsTemplate "js/search.js" .Site.Home }}
{{ $js := (slice $jsBase $jsAnchor $jsSearch) | resources.Concat "js/main.js" }}
{{ if .Site.IsServer }}
{{ if hugo.IsServer }}
<script src="{{ $js.RelPermalink }}"></script>
{{ else }}
{{ $js := $js | minify | fingerprint }}
Expand Down
4 changes: 2 additions & 2 deletions themes/docsy/layouts/swagger/list.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ <h1>{{ .Title }}</h1>
{{ with .Params.description }}<div class="lead">{{ . | markdownify }}</div>{{ end }}
{{ .Content }}
{{ partial "section-index.html" . }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.GoogleAnalytics)) }}
{{ if (and (not .Params.hide_feedback) (.Site.Params.ui.feedback.enable) (.Site.Config.Services.GoogleAnalytics.ID)) }}
{{ partial "feedback.html" .Site.Params.ui.feedback }}
<br />
{{ end }}
{{ if (.Site.DisqusShortname) }}
{{ if (.Site.Config.Services.Disqus.Shortname) }}
<br />
{{ partial "disqus-comment.html" . }}
{{ end }}
Expand Down

0 comments on commit 078bdaf

Please sign in to comment.