From 743f0171cb811815884f89919eb04791b9c4f21e Mon Sep 17 00:00:00 2001 From: Phillip Davis Date: Tue, 8 Sep 2026 13:50:02 +0930 Subject: [PATCH] ci: use the case function in the trivy workflow Similar to the way it is done in other workflows. This makes the code more readable. Signed-off-by: Phillip Davis --- .github/workflows/trivy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/trivy.yml b/.github/workflows/trivy.yml index e73e418..bf2db70 100644 --- a/.github/workflows/trivy.yml +++ b/.github/workflows/trivy.yml @@ -109,7 +109,7 @@ jobs: uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0 with: node-version: ${{ inputs.node-version }} - cache: ${{ inputs.node-cache-dependency-path != '' && 'yarn' || '' }} + cache: ${{ case(inputs.node-cache-dependency-path != '', 'yarn', '') }} cache-dependency-path: ${{ inputs.node-cache-dependency-path }} - name: Enable yarn @@ -133,7 +133,7 @@ jobs: id: scan env: SCAN_PATH: ${{ inputs.scan-path }} - APP_NAME: ${{ inputs.app-name != '' && inputs.app-name || github.event.repository.name }} + APP_NAME: ${{ case(inputs.app-name != '', inputs.app-name, github.event.repository.name) }} run: | if [ -n "${SCAN_PATH}" ]; then candidates="${SCAN_PATH}"