-
Notifications
You must be signed in to change notification settings - Fork 7
69 lines (62 loc) · 1.7 KB
/
code-scan.yml
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
58
59
60
61
62
63
64
65
66
67
68
69
name: Analysis
on:
push:
branches:
- main
pull_request:
branches:
- main
schedule:
# Every 3 days at 7 a.m.
- cron: '0 7 */3 * *'
permissions: {}
jobs:
Lint:
permissions:
contents: read
uses: bytemare/workflows/.github/workflows/golangci-lint.yml@6a1ecd61e6af01d166be3eaa6d38fcecf7754c08
with:
config-path: ./.github/.golangci.yml
scope: ./...
CodeQL:
permissions:
actions: read
contents: read
security-events: write
uses: bytemare/workflows/.github/workflows/codeql.yml@6a1ecd61e6af01d166be3eaa6d38fcecf7754c08
with:
language: go
CodeScans:
permissions:
contents: read
uses: bytemare/workflows/.github/workflows/scan-go.yml@6a1ecd61e6af01d166be3eaa6d38fcecf7754c08
with:
sonar-configuration: .github/sonar-project.properties
coverage-output-file: coverage.out
secrets:
github: ${{ secrets.GITHUB_TOKEN }}
sonar: ${{ secrets.SONAR_TOKEN }}
codecov: ${{ secrets.CODECOV_TOKEN }}
semgrep: ${{ secrets.SEMGREP_APP_TOKEN }}
Scorecard:
permissions:
# Needed if using Code scanning alerts
security-events: write
# Needed for GitHub OIDC token if publish_results is true
id-token: write
# Needed for nested workflow
actions: read
attestations: read
checks: read
contents: read
deployments: read
issues: read
discussions: read
packages: read
pages: read
pull-requests: read
repository-projects: read
statuses: read
uses: bytemare/workflows/.github/workflows/scorecard.yml@6a1ecd61e6af01d166be3eaa6d38fcecf7754c08
secrets:
token: ${{ secrets.SCORECARD_TOKEN }}