Skip to content

Commit

Permalink
chore: avoid script injections
Browse files Browse the repository at this point in the history
Signed-off-by: James Petersen <[email protected]>
  • Loading branch information
found-it committed Dec 10, 2024
1 parent a0611e8 commit 9040db3
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
14 changes: 11 additions & 3 deletions .github/workflows/helm-test.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,19 @@ jobs:
- name: Run chart-testing (list-changed)
id: list-changed
run: |
changed=$(ct list-changed --target-branch ${{ github.event.repository.default_branch }})
changed=$(ct list-changed --target-branch ${DEFAULT_BRANCH})
if [[ -n "$changed" ]]; then
echo "changed=true" >> "$GITHUB_OUTPUT"
fi
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

- name: Run chart-testing (lint)
if: steps.list-changed.outputs.changed == 'true'
run: ct lint --target-branch ${{ github.event.repository.default_branch }}
run: |
ct lint --target-branch ${DEFAULT_BRANCH}
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}

- name: Check README diff
if: steps.list-changed.outputs.changed == 'true'
Expand All @@ -58,4 +63,7 @@ jobs:

- name: Run chart-testing (install)
if: steps.list-changed.outputs.changed == 'true'
run: ct install --target-branch ${{ github.event.repository.default_branch }}
run: |
ct install --target-branch ${DEFAULT_BRANCH}
env:
DEFAULT_BRANCH: ${{ github.event.repository.default_branch }}
File renamed without changes.

0 comments on commit 9040db3

Please sign in to comment.