Merge pull request #11424 from katexochen/p/regorus-oras-cache

ci/static-checks: use oras cache for regorus
This commit is contained in:
Dan Mihai
2025-06-24 14:49:00 -07:00
committed by GitHub
2 changed files with 88 additions and 9 deletions

View File

@@ -5,6 +5,7 @@ on:
- edited
- reopened
- synchronize
workflow_dispatch:
permissions:
contents: read
@@ -105,6 +106,9 @@ jobs:
- "make static-checks"
env:
GOPATH: ${{ github.workspace }}
permissions:
contents: read # for checkout
packages: write # for push to ghcr.io
steps:
- name: Checkout code
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
@@ -131,6 +135,10 @@ jobs:
cd "${GOPATH}/src/github.com/${{ github.repository }}"
./tests/install_opa.sh
- name: Install regorus
env:
ARTEFACT_REPOSITORY: "${{ github.repository }}"
ARTEFACT_REGISTRY_USERNAME: "${{ github.actor }}"
ARTEFACT_REGISTRY_PASSWORD: "${{ secrets.GITHUB_TOKEN }}"
run: |
"${GOPATH}/src/github.com/${{ github.repository }}/tests/install_regorus.sh"
- name: Run check