chore(deps): update prom/prometheus docker tag to v3.9.1 #463
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: Main CI | |
| on: | |
| pull_request: | |
| branches: | |
| - "main" | |
| jobs: | |
| all-status-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| needs: | |
| - ansible-lint | |
| - check-symlinks | |
| # - dockerfile-lint | |
| - yaml-lint | |
| - markdown-lint | |
| - shell-lint | |
| - action-lint | |
| - dotenv-lint | |
| - kics | |
| - sops-secrets-check | |
| if: ${{ always() }} | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Check all-status-check | |
| run: | | |
| diff \ | |
| <(yq ".jobs | del(.all-status-check) | keys.[]" .github/workflows/ci.yml) \ | |
| <(yq ".jobs.all-status-check.needs.[]" .github/workflows/ci.yml) | |
| - name: Fail if any needed job failed | |
| env: | |
| JOBS: ${{ toJson(needs) }} | |
| run: | | |
| for result in $(jq -r '.[].result' <<<"$JOBS"); do | |
| if [[ ! "$result" =~ ^(success|skipped)$ ]]; then | |
| exit 1 | |
| fi | |
| done | |
| ansible-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Setup ansible | |
| run: pip install ansible ansible-lint | |
| - name: Run ansible-galaxy | |
| run: cd ansible && ansible-galaxy install -r requirements.yml | |
| - name: Run ansible-lint | |
| run: cd ansible && ansible-lint | |
| check-symlinks: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Find symlinks | |
| run: | | |
| if [ -n "$(find . -type l)" ]; then | |
| echo "Error: Found symbolic links in the repository" | |
| find . -type l | |
| exit 1 | |
| fi | |
| # dockerfile-lint: | |
| # runs-on: ubuntu-latest | |
| # timeout-minutes: 10 | |
| # steps: | |
| # - uses: actions/checkout@v4 | |
| # - name: Dockerfile lint | |
| # uses: reviewdog/[email protected] | |
| # with: | |
| # level: warning | |
| yaml-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: reviewdog/action-yamllint@f01d8a48fd8d89f89895499fca2cff09f9e9e8c0 # v1.21.0 | |
| with: | |
| level: warning | |
| yamllint_flags: "-c .yamllint ." | |
| markdown-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: reviewdog/action-markdownlint@3667398db9118d7e78f7a63d10e26ce454ba5f58 # v0.26.2 | |
| with: | |
| level: warning | |
| shell-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: reviewdog/action-shellcheck@4c07458293ac342d477251099501a718ae5ef86e # v1.32.0 | |
| with: | |
| level: warning | |
| - uses: reviewdog/action-shfmt@d8f080930b9be5847b4f97e9f4122b81a82aaeac # v1.0.4 | |
| with: | |
| level: warning | |
| action-lint: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: reviewdog/action-actionlint@f00ad0691526c10be4021a91b2510f0a769b14d0 # v1.68.0 | |
| with: | |
| level: warning | |
| dotenv-lint: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: dotenv-linter/action-dotenv-linter@21287e2624aaf2dc8da5dd8ccfe8e49c63501116 # v2.25.0 | |
| with: | |
| dotenv_linter_flags: --skip UnorderedKey | |
| kics: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - uses: checkmarx/kics-github-action@6b6fc1162a0f06704e4cca6e5f8e008ab20fabe5 # v2.1.16 | |
| with: | |
| path: . | |
| sops-secrets-check: | |
| runs-on: ubuntu-latest | |
| timeout-minutes: 10 | |
| steps: | |
| - name: Checkout code | |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5 | |
| - name: Run sops secrets check | |
| run: make sops-ci |