-
-
Notifications
You must be signed in to change notification settings - Fork 1
29 lines (23 loc) · 895 Bytes
/
Copy pathcopilot-setup-steps.yml
File metadata and controls
29 lines (23 loc) · 895 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
name: Copilot Setup Steps
on:
workflow_dispatch:
jobs:
copilot-setup-steps:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
- name: Install jq
run: sudo apt-get update -qq && sudo apt-get install -y jq
- name: Install shellcheck
run: sudo apt-get install -y shellcheck
- name: Install gitleaks
run: |
GITLEAKS_VERSION=$(curl -s https://api.github.com/repos/gitleaks/gitleaks/releases/latest | jq -r .tag_name)
curl -sSL "https://github.com/gitleaks/gitleaks/releases/download/${GITLEAKS_VERSION}/gitleaks_${GITLEAKS_VERSION#v}_linux_x64.tar.gz" \
| sudo tar -xz -C /usr/local/bin gitleaks
- name: Verify tools
run: |
jq --version
shellcheck --version
gitleaks version