Update pre-commit hook DavidAnson/markdownlint-cli2 to v0.20.0 #1337
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: CI | |
| on: | |
| push: | |
| branches: | |
| - main | |
| tags: | |
| - "v[0-9]+.[0-9]+.[0-9]+*" | |
| pull_request: | |
| branches: | |
| - main | |
| env: | |
| platforms: linux/amd64,linux/arm64 | |
| jobs: | |
| build: | |
| runs-on: ubuntu-latest | |
| strategy: | |
| matrix: | |
| image: ["3.22", "3.23"] | |
| openssl_version: ["3.1.2"] | |
| fail-fast: false | |
| steps: | |
| - name: Checkout Repository | |
| uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5.0.1 | |
| - name: Docker Buildx | |
| uses: docker/setup-buildx-action@e468171a9de216ec08956ac3ada2f0791b6bd435 # v3.11.1 | |
| - name: Setup QEMU | |
| uses: docker/setup-qemu-action@c7c53464625b32c7a7e944ae62b3e17d2b600130 # v3.7.0 | |
| with: | |
| platforms: arm64 | |
| if: github.event_name != 'pull_request' | |
| - name: Login to GitHub Container Registry | |
| uses: docker/login-action@5e57cd118135c172c3672efd75eb46360885c0ef # v3.6.0 | |
| with: | |
| registry: ghcr.io | |
| username: ${{ github.repository_owner }} | |
| password: ${{ secrets.GITHUB_TOKEN }} | |
| if: ${{ github.event_name != 'pull_request' }} | |
| - name: Docker meta | |
| id: meta | |
| uses: docker/metadata-action@c299e40c65443455700f0fdfc63efafe5b349051 # v5.10.0 | |
| with: | |
| images: | | |
| name=ghcr.io/nginx/alpine-fips | |
| tags: | | |
| type=edge | |
| type=ref,event=pr,suffix=-alpine${{ matrix.image }} | |
| type=semver,pattern={{version}} | |
| type=semver,pattern={{major}}.{{minor}} | |
| type=semver,pattern={{version}},suffix=-alpine${{ matrix.image }} | |
| env: | |
| DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index | |
| - name: Build Docker image | |
| uses: docker/build-push-action@263435318d21b8e681c14492fe198d362a7d2c83 # v6.18.0 | |
| id: build-push | |
| with: | |
| file: Dockerfile | |
| context: "." | |
| cache-from: type=gha,scope=alpine${{ matrix.image }} | |
| cache-to: type=gha,scope=alpine${{ matrix.image }},mode=max | |
| tags: ${{ steps.meta.outputs.tags }} | |
| load: ${{ github.event_name == 'pull_request' }} | |
| push: ${{ github.event_name != 'pull_request' }} | |
| platforms: ${{ github.event_name != 'pull_request' && env.platforms || '' }} | |
| annotations: ${{ github.event_name != 'pull_request' && steps.meta.outputs.annotations || '' }} | |
| target: alpine | |
| pull: true | |
| sbom: ${{ github.event_name != 'pull_request' }} | |
| provenance: ${{ github.event_name != 'pull_request' }} | |
| build-args: | | |
| BUILD_OS=alpine:${{ matrix.image }} | |
| OPENSSL_VERSION=${{ matrix.openssl_version }} | |
| - name: Run Grype vulnerability scanner | |
| uses: anchore/scan-action@3c9a191a0fbab285ca6b8530b5de5a642cba332f # v7.2.2 | |
| continue-on-error: true | |
| id: scan | |
| with: | |
| image: ghcr.io/nginx/alpine-fips:${{ steps.meta.outputs.version }} | |
| only-fixed: true | |
| add-cpes-if-none: true | |
| - name: Upload Anchore scan SARIF report | |
| uses: github/codeql-action/upload-sarif@1b168cd39490f61582a9beae412bb7057a6b2c4e # v4.31.8 | |
| with: | |
| sarif_file: ${{ steps.scan.outputs.sarif }} | |
| - name: Create/Update Draft | |
| uses: lucacome/draft-release@0ebb400b90474a1b791602046abf8394e9f5402d # v2.0.2 | |
| with: | |
| minor-label: "enhancement" | |
| major-label: "change" | |
| publish: ${{ startsWith(github.ref, 'refs/tags/') }} | |
| collapse-after: 20 | |
| if: ${{ github.event_name != 'pull_request' }} |