-
Notifications
You must be signed in to change notification settings - Fork 308
57 lines (52 loc) · 1.57 KB
/
debug.yaml
File metadata and controls
57 lines (52 loc) · 1.57 KB
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
name: debug
on:
workflow_dispatch:
inputs:
runner:
description: "Runner type to debug on"
required: true
default: "ubuntu-latest"
type: choice
options:
- macos-latest
- ubuntu-latest
permissions:
contents: read
env:
HOMEBREW_GITHUB_API_TOKEN: ${{ secrets.GITHUB_TOKEN }}"
HOMEBREW_NO_ANALYTICS: 1
HOMEBREW_NO_AUTO_UPDATE: 1
HOMEBREW_NO_EMOJI: 1
HOMEBREW_NO_ENV_HINTS: 1
HOMEBREW_NO_INSTALL_CLEANUP: 1
jobs:
debug:
runs-on: ${{ inputs.runner }}
timeout-minutes: 10
steps:
- name: Get rate limits
run: |
curl https://api.github.com/rate_limit \
-H "Accept: application/vnd.github+json" \
-H "Authorization: Bearer ${{ secrets.GITHUB_TOKEN }}" \
--show-error \
--silent \
| jq .
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: ./go.mod
- run: |
echo "Starting a tmate session for 10 minutes."
echo
echo "You can connect using the SSH command printed below to get an interactive shell"
echo "on this GitHub Actions runner. Access is limited to the public SSH keys"
echo "associated with your GitHub account."
curl https://api.github.com/users/${{ github.actor }}/keys \
-H "Accept: application/vnd.github+json" \
--show-error \
--silent \
| jq .
- uses: mxschmitt/action-tmate@v3
with:
limit-access-to-actor: true