|
27 | 27 | # - https://gh.io/supported-runners-and-hardware-resources |
28 | 28 | # - https://gh.io/using-larger-runners (GitHub.com only) |
29 | 29 | # Consider using larger runners or machines with greater resources for possible analysis time improvements. |
30 | | - runs-on: ${{ (matrix.language == 'swift' && 'macos-latest') || 'ubuntu-latest' }} |
| 30 | + |
| 31 | + runs-on: 'ubuntu-latest' |
| 32 | + |
| 33 | + container: |
| 34 | + image: mcr.microsoft.com/devcontainers/python:1-3.12-bullseye |
| 35 | + |
31 | 36 | permissions: |
32 | 37 | # required for all workflows |
33 | 38 | security-events: write |
|
53 | 58 | # see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/customizing-your-advanced-setup-for-code-scanning. |
54 | 59 | # If you are analyzing a compiled language, you can modify the 'build-mode' for that language to customize how |
55 | 60 | # your codebase is analyzed, see https://docs.github.com/en/code-security/code-scanning/creating-an-advanced-setup-for-code-scanning/codeql-code-scanning-for-compiled-languages |
| 61 | + |
56 | 62 | steps: |
57 | 63 | - name: Checkout repository |
58 | 64 | uses: actions/checkout@v4 |
|
63 | 69 | # - name: Setup runtime (example) |
64 | 70 | # uses: actions/setup-example@v1 |
65 | 71 |
|
66 | | - # Force Python 3.12 for this job (uv will pick this up) |
67 | | - - name: Set up Python 3.12 |
68 | | - uses: actions/setup-python@v5 |
69 | | - with: |
70 | | - python-version: '3.12' |
71 | | - |
72 | | - - run: | |
73 | | - python3 --version |
74 | | - which python3 |
75 | | -
|
76 | 72 | # Initializes the CodeQL tools for scanning. |
77 | 73 | - name: Initialize CodeQL |
78 | 74 | uses: github/codeql-action/init@v4 |
|
92 | 88 | # to build your code. |
93 | 89 | # ℹ️ Command-line programs to run using the OS shell. |
94 | 90 | # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun |
95 | | - - if: matrix.build-mode == 'manual' |
| 91 | + - name: Manual build check |
| 92 | + if: matrix.build-mode == 'manual' |
96 | 93 | shell: bash |
97 | 94 | run: | |
98 | 95 | echo 'If you are using a "manual" build mode for one or more of the' \ |
|
0 commit comments