Resolve resolv CVE-2026-80212 and CVE-2026-80213 #1303
Workflow file for this run
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: Rubocop | |
| on: | |
| pull_request: | |
| branches: | |
| - "*" | |
| - "**/*" | |
| concurrency: | |
| group: ${{ github.ref }}-rubocop | |
| cancel-in-progress: true | |
| jobs: | |
| rubocop: | |
| name: Rubocop | |
| # Containers must run in Linux based operating systems | |
| runs-on: ubuntu-24.04 | |
| # Docker Hub image that the job executes in | |
| container: ruby:4.0.5-slim-bookworm | |
| steps: | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| - name: "Container Setup" | |
| id: container-setup | |
| uses: ./.github/workflows/container_setup | |
| - uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Get changed files | |
| id: changed-files | |
| run: | | |
| echo "ruby=$(git diff --name-only --diff-filter=ACMRT ${{ github.event.pull_request.base.sha }} ${{ github.sha }} | grep .rb$ | xargs)" >> $GITHUB_OUTPUT | |
| - id: rubocop | |
| name: Run Rubocop | |
| env: | |
| ALL_CHANGED_FILES: ${{ steps.changed-files.outputs.ruby }} | |
| run: | | |
| # Ignore files we don't control the format of | |
| ignore_patterns="db/schema.rb\|bin/rails\|bin/rake\|bin/bundle\|config/" | |
| files=`echo "${ALL_CHANGED_FILES}" | tr " " "\n" | grep -v $ignore_patterns | grep "**/*\.rb" | tr "\n" " ./"` | |
| num=`echo $files | wc -w` | |
| echo $files | |
| if [ $num -gt 0 ]; then bundle exec rubocop --config ./.rubocop.yml $files; else echo "No changed ruby files"; fi |