Update mikefarah/yq action to v4.53.6 #25
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: Build and Deploy | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| workflow_dispatch: | |
| # Declare default permissions as read only. | |
| permissions: read-all | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: true | |
| jobs: | |
| validate: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| pull-requests: write | |
| checks: write | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Validate Markdown links | |
| uses: tcort/github-action-markdown-link-check@e047c5b37f24ab722bbef1a27b6fab7f96bc4068 # v1.1.3 | |
| with: | |
| config-file: mlc_config.json | |
| - name: Vale | |
| uses: vale-cli/vale-action@518a9136acc6e6668ce7c00d367051e0941e87ff # v3.0.0 | |
| with: | |
| version: 3.17.0 | |
| files: all | |
| sync: true | |
| filter_mode: added | |
| fail_on_error: true | |
| reporter: github-pr-check | |
| build: | |
| needs: validate | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # Only included to validate local build support | |
| os: [ubuntu-latest, windows-latest, macos-latest] | |
| runs-on: ${{ matrix.os }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Set up Ruby | |
| uses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01b # v1.321.0 | |
| with: | |
| ruby-version: .ruby-version | |
| bundler-cache: true | |
| - name: Configure Pages | |
| id: pages | |
| uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0 | |
| - name: Build with Jekyll | |
| env: | |
| JEKYLL_ENV: production | |
| # Fall back to "/" when base_path is empty so PowerShell does not drop the --baseurl argument | |
| run: bundle exec jekyll build --baseurl "${{ steps.pages.outputs.base_path || '/' }}" | |
| - name: Install libcurl (Windows) | |
| if: runner.os == 'Windows' | |
| shell: bash | |
| # MSYS2 provides libcurl-4.dll; ethon only loads libcurl.dll. | |
| # Pattern from https://github.com/mitre/cyber-trackr-live/commit/cd91c3f | |
| run: | | |
| pacman -S --noconfirm mingw-w64-ucrt-x86_64-curl | |
| cp /ucrt64/bin/libcurl-4.dll /ucrt64/bin/libcurl.dll | |
| cp /ucrt64/bin/libcurl-4.dll /c/Windows/System32/libcurl.dll | |
| echo "$(cygpath -w /ucrt64/bin)" >> "$GITHUB_PATH" | |
| - name: Validate HTML | |
| run: bundle exec htmlproofer --disable-external ./_site | |
| - name: Upload Pages artifact | |
| if: matrix.os == 'ubuntu-latest' && github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | |
| uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0 | |
| with: | |
| path: _site | |
| deploy: | |
| if: github.ref == 'refs/heads/main' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch') | |
| needs: [validate, build] | |
| runs-on: ubuntu-latest | |
| permissions: | |
| pages: write | |
| id-token: write | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@bf7454d06d71f1098171f2acdf0cd4708d7b5920 # v2.20.0 | |
| with: | |
| egress-policy: audit | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@cd2ce8fcbc39b97be8ca5fce6e763baed58fa128 # v5.0.0 |