Remove inner metadata index.json (metadata/<groupId>/<artifactId>/<version>/index.json) from the repository (Part #1) #815
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: "Scan docker images from the allowed docker images list" | |
| on: | |
| # we run this job if somebody wants to add/update allowed docker images | |
| pull_request: | |
| # we run this job once a week to check if new vulnerabilities are found in existing images | |
| schedule: | |
| - cron: "0 0 * * 6" | |
| jobs: | |
| scan-images: | |
| name: "🔎 Scan docker images" | |
| runs-on: "ubuntu-22.04" | |
| steps: | |
| - name: "☁️ Checkout repository" | |
| uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: "🔎 Detect relevant file changes" | |
| id: filter | |
| uses: ./.github/actions/detect-file-changes | |
| with: | |
| file-patterns: | | |
| - 'tests/tck-build-logic/src/main/resources/allowed-docker-images/**' | |
| - uses: actions/setup-java@v4 | |
| if: github.event_name == 'schedule' || steps.filter.outputs.changed == 'true' | |
| with: | |
| distribution: 'graalvm' | |
| java-version: '21' | |
| github-token: ${{ secrets.GITHUB_TOKEN }} | |
| - name: "Install required tools" | |
| if: github.event_name == 'schedule' || steps.filter.outputs.changed == 'true' | |
| run: | | |
| curl -sSfL https://get.anchore.io/grype/v0.104.0/install.sh | sudo sh -s -- -b /usr/local/bin | |
| sudo apt-get install jq | |
| - name: "🔎 Check changed docker images" | |
| if: github.event_name == 'pull_request' && steps.filter.outputs.changed == 'true' | |
| run: ./gradlew checkAllowedDockerImages --baseCommit=${{ github.event.pull_request.base.sha }} --newCommit=${{ github.event.pull_request.head.sha }} | |
| - name: "🔎 Check all docker images" | |
| if: github.event_name == 'schedule' && github.repository == 'oracle/graalvm-reachability-metadata' | |
| run: ./gradlew checkAllowedDockerImages |