feat(build-push-to-dockerhub): enable docker mirror for buildx on self-hosted runners #2487
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: "CodeQL" | |
on: | |
push: | |
branches: | |
- "main" | |
pull_request: | |
branches: | |
- "main" | |
types: | |
- edited | |
- opened | |
- ready_for_review | |
- synchronize | |
schedule: | |
- cron: "21 5 * * 3" | |
# To trigger a CodeQL analysis manually | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
analyze: | |
name: Analyze (${{ matrix.language }}) | |
runs-on: ubuntu-latest-8-cores | |
timeout-minutes: 360 | |
permissions: | |
security-events: write | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: go | |
build-mode: autobuild | |
- language: javascript-typescript | |
build-mode: none | |
paths-ignore: | |
- "**/dist/**" | |
steps: | |
- name: Harden the runner (Audit all outbound calls) | |
uses: step-security/harden-runner@0634a2670c59f64b4a01f0f96f84700a4088b9f0 # v2.12.0 | |
with: | |
egress-policy: audit | |
- name: Checkout repository | |
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2 | |
with: | |
persist-credentials: false | |
- name: Initialize CodeQL | |
uses: github/codeql-action/init@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: ${{ matrix.build-mode }} | |
config: | | |
paths-ignore: ${{ toJSON(matrix.paths-ignore) }} | |
- name: Perform CodeQL Analysis | |
uses: github/codeql-action/analyze@28deaeda66b76a05916b6923827895f2b14ab387 # v3.28.16 | |
with: | |
category: "/language:${{matrix.language}}" |