diff --git a/.github/workflows/update-trivy-cache.yml b/.github/workflows/update-trivy-cache.yml index dd39f3080..6d2fea0be 100644 --- a/.github/workflows/update-trivy-cache.yml +++ b/.github/workflows/update-trivy-cache.yml @@ -10,7 +10,7 @@ permissions: read-all jobs: update-trivy-db: runs-on: ubuntu-latest - if: ${{ github.ref == github.event.repository.default_branch }} + if: ${{ github.ref_name == github.event.repository.default_branch }} steps: - name: Setup oras uses: oras-project/setup-oras@9c92598691bfef1424de2f8fae81941568f5889c # v1.2.1