Skip to content

Commit f55e68a

Browse files
authored
Merge branch 'main' into copilot/fix-overly-permissive-access-control
2 parents 08132a3 + e5d4677 commit f55e68a

File tree

1 file changed

+62
-0
lines changed

1 file changed

+62
-0
lines changed
Lines changed: 62 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,62 @@
1+
---
2+
name: "Copilot Setup Steps"
3+
4+
# Automatically run the setup steps when they are changed to allow for
5+
# easy validation, and manual testing through the repository's Actions tab
6+
on:
7+
workflow_dispatch: {}
8+
push:
9+
paths:
10+
- .github/workflows/copilot-setup-steps.yml
11+
pull_request:
12+
paths:
13+
- .github/workflows/copilot-setup-steps.yml
14+
15+
# Set the GH_TOKEN environment variable globally
16+
# This appears to not work in a copilot-setup-steps
17+
env:
18+
GH_TOKEN: ${{ github.token }}
19+
20+
jobs:
21+
# The job MUST be called `copilot-setup-steps` or it will not be picked up
22+
# by Copilot.
23+
copilot-setup-steps:
24+
runs-on: ubuntu-latest
25+
26+
# Set the permissions to the lowest permissions possible needed for your
27+
# steps. Copilot will be given its own token for its operations.
28+
permissions:
29+
# If you want to clone the repository as part of your setup steps, for
30+
# example to install dependencies, you'll need the `contents: read`
31+
# permission. If you don't clone the repository in your setup steps,
32+
# Copilot will do this for you automatically after the steps complete.
33+
contents: read
34+
35+
# You can define any steps you want, and they will run before the agent
36+
# starts. If you do not check out your code, Copilot will do this for you.
37+
steps:
38+
- name: Checkout code
39+
uses: actions/checkout@v4
40+
with:
41+
submodules: true
42+
43+
- name: Install GitHub CLI CodeQL extension
44+
env:
45+
GH_TOKEN: ${{ github.token }}
46+
run: |
47+
# Install GitHub CLI (should already be available in ubuntu-latest)
48+
gh --version
49+
50+
# Install CodeQL CLI extension
51+
gh extension install github/gh-codeql
52+
53+
# Set CodeQL to latest version
54+
gh codeql set-version latest
55+
56+
# Verify the extension is installed and working
57+
gh codeql version
58+
59+
#install packs
60+
(cd ./ql/src/ && gh codeql pack install)
61+
(cd ./ql/lib/ && gh codeql pack install)
62+
(cd ./ql/test/ && gh codeql pack install)

0 commit comments

Comments
 (0)