-
Notifications
You must be signed in to change notification settings - Fork 19
42 lines (38 loc) · 1.31 KB
/
Copy pathci.yml
File metadata and controls
42 lines (38 loc) · 1.31 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
name: Go CI
on:
pull_request:
push:
branches:
- main
workflow_dispatch:
inputs:
skip_tests:
description: 'Skip running tests'
required: false
default: false
type: boolean
triggered_user:
description: 'Who triggered the workflow'
required: false
default: "<!here>"
type: string
jobs:
go-ci:
permissions:
id-token: write
contents: write
packages: read
uses: punchh/GHA-central-workflow/.github/workflows/go-ci.yml@main
with:
repository: ${{ github.repository }}
branch: ${{ github.event_name == 'workflow_dispatch' && github.ref_name || (github.event_name == 'pull_request' && github.event.pull_request.head.ref || github.ref_name) }}
go_version: 1.24
triggered_user: ${{ github.event_name == 'workflow_dispatch' && inputs.triggered_user || '<!here>' }}
skip_tests: ${{ github.event_name == 'workflow_dispatch' && inputs.skip_tests || false }}
test_cases: false
snyk_severity_threshold: "critical"
go_build: true
secrets:
SVC_ACCOUNT_GITHUB_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_GITHUB_ORG_TOKEN }}
SVC_ACCOUNT_SNYK_ORG_TOKEN: ${{ secrets.SVC_ACCOUNT_SNYK_ORG_TOKEN }}
CAPTAIN_DEVOPS_SLACK_BOT_TOKEN: ${{ secrets.CAPTAIN_DEVOPS_SLACK_BOT_TOKEN }}