From 56a4f4462af9ac3790fa8c34aba06386665c0225 Mon Sep 17 00:00:00 2001 From: Mike Fairhurst Date: Fri, 12 Sep 2025 20:52:35 -0700 Subject: [PATCH 1/2] Add copilot setup workflow. --- .github/workflows/copilot-setup-steps.yaml | 36 ++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .github/workflows/copilot-setup-steps.yaml diff --git a/.github/workflows/copilot-setup-steps.yaml b/.github/workflows/copilot-setup-steps.yaml new file mode 100644 index 0000000..15e5d4a --- /dev/null +++ b/.github/workflows/copilot-setup-steps.yaml @@ -0,0 +1,36 @@ +name: "Copilot Setup Steps" + +on: + # Allow manual testing through the repository's "Actions" tab + workflow_dispatch: {} + # Automatically run the setup steps when an associated workflow is changed. + push: + paths: + - .github/workflows/copilot-setup-steps.yml + - .github/actions/setup-codeql-environment/action.yml + pull_request: + paths: + - .github/workflows/copilot-setup-steps.yml + - .github/actions/setup-codeql-environment/action.yml + +jobs: + # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot. + copilot-setup-steps: + env: + # Primary model for detailed verification + PRIMARY_MODEL: "openai/gpt-4.1" + # Target models to verify access for - update as new models become available + TARGET_MODELS: "openai/gpt-4.1,openai/o1-preview,openai/o1-mini" + permissions: + contents: read + runs-on: ubuntu-latest + + steps: + - name: Copilot Setup - Checkout code + uses: actions/checkout@v4 + + - name: Copilot Setup - Install CodeQL + uses: ./.github/actions/install-codeql + + - name: Copilot Setup - Install CodeQL packs + uses: ./.github/actions/install-codeql-packs \ No newline at end of file From 8d224dc0c0452907e1c0e58ccd686829ff0a0808 Mon Sep 17 00:00:00 2001 From: Mike Fairhurst Date: Fri, 12 Sep 2025 20:55:56 -0700 Subject: [PATCH 2/2] Fix yaml paths --- .github/workflows/copilot-setup-steps.yaml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/copilot-setup-steps.yaml b/.github/workflows/copilot-setup-steps.yaml index 15e5d4a..36b63b7 100644 --- a/.github/workflows/copilot-setup-steps.yaml +++ b/.github/workflows/copilot-setup-steps.yaml @@ -6,12 +6,14 @@ on: # Automatically run the setup steps when an associated workflow is changed. push: paths: - - .github/workflows/copilot-setup-steps.yml - - .github/actions/setup-codeql-environment/action.yml + - .github/workflows/copilot-setup-steps.yaml + - .github/actions/install-codeql/action.yaml + - .github/actions/install-codeql-packs/action.yaml pull_request: paths: - - .github/workflows/copilot-setup-steps.yml - - .github/actions/setup-codeql-environment/action.yml + - .github/workflows/copilot-setup-steps.yaml + - .github/actions/install-codeql/action.yaml + - .github/actions/install-codeql-packs/action.yaml jobs: # The job MUST be called `copilot-setup-steps` or it will not be picked up by Copilot.