microsoft/hve-core

Public

mirrored fromhttps://github.com/microsoft/hve-coreAvailable

CodeCommitsIssuesPull requestsActionsInsightsSecurity
copilot/research-single-dynamic-rewrite

Branches

Tags

  • No tags available.
0Branches0Tags
Go to file
Add file
Code

Clone

HTTPS

Download ZIP

.github/workflows/copilot-setup-steps.yml

63lines · modecode

1# Copyright (c) Microsoft Corporation.
2# SPDX-License-Identifier: MIT
3#
4# copilot-setup-steps.yml
5# Pre-install tools and dependencies for GitHub Copilot Coding Agent
6# Reference: https://docs.github.com/en/copilot/how-tos/use-copilot-agents/coding-agent/customize-the-agent-environment
7
8name: "Copilot Setup Steps"
9
10# Copilot coding agent runs these steps internally before starting work.
11# Use workflow_dispatch to manually validate the setup when desired.
12on:
13 workflow_dispatch:
14
15jobs:
16 # Job MUST be named 'copilot-setup-steps' to be recognized by Copilot
17 copilot-setup-steps:
18 runs-on: ubuntu-latest
19
20 # Minimal permissions; Copilot receives its own token for operations
21 permissions:
22 contents: read
23
24 steps:
25 - name: Checkout code
26 uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v4.2.2
27 with:
28 persist-credentials: false
29
30 - name: Set up Node.js
31 uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # v4.1.0
32 with:
33 node-version: "20"
34 cache: "npm"
35
36 # continue-on-error allows Copilot to start work even if dependencies fail,
37 # so it can fix package.json/package-lock.json issues itself
38 - name: Install JavaScript dependencies
39 continue-on-error: true
40 run: npm ci
41
42 - name: Set up Python
43 uses: actions/setup-python@39cd14951b08e74b54015e9e001cdefcf80e669f # v5.1.1
44 with:
45 python-version: "3.11"
46
47 - name: Install PowerShell modules
48 shell: pwsh
49 run: |
50 Install-Module -Name PowerShell-Yaml -Force -Scope CurrentUser
51 Install-Module -Name PSScriptAnalyzer -Force -Scope CurrentUser
52
53 - name: Verify tool availability
54 run: |
55 echo "=== Tool Versions ==="
56 node --version
57 npm --version
58 python3 --version
59 pwsh --version
60 shellcheck --version
61 echo ""
62 echo "=== npm Scripts Available ==="
63 npm run --list
64