Skip to content

Commit 04135c0

Browse files
committed
Update jinja syntax
1 parent 6503c19 commit 04135c0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

template/.github/workflows/scorecard.yml.jinja

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
runs-on: ubuntu-latest
2626
# `publish_results: true` only works when run from the default branch. conditional can be removed if disabled.
2727
{%- endraw -%}
28-
{% set github_repo_url = github_url.split("/")[-2:].join("/") %}
29-
if: (github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request') && github.repository == '{{ github_repo_url }}'
30-
{%- raw -%}
28+
{% set github_repo_url = github_url.split("/")[-2:] %}
29+
if: (github.event.repository.default_branch == github.ref_name || github.event_name == 'pull_request') && github.repository == '{{ github_repo_url|join("/") }}'
30+
{% raw %}
3131
permissions:
3232
# Needed to upload the results to code-scanning dashboard.
3333
security-events: write

0 commit comments

Comments
 (0)