-
Notifications
You must be signed in to change notification settings - Fork 0
48 lines (40 loc) · 973 Bytes
/
security.yml
File metadata and controls
48 lines (40 loc) · 973 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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Security
on:
push:
branches: [ "**" ]
paths:
- "**.go"
- "go.mod"
- "go.sum"
- "Makefile"
- ".github/workflows/security.yml"
pull_request:
branches: [ "**" ]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
steps:
- name: Checkout
uses: actions/checkout@v5
- name: Set up Go 1.26.1
uses: actions/setup-go@v6
with:
go-version: '1.26.1'
cache: false # usem cache manual per controlar directoris
- name: Cache Go modules
uses: actions/cache@v4
with:
path: |
~/go/pkg/mod
~/.cache/go-build
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
restore-keys: |
${{ runner.os }}-go-
- name: Security
run: |
make security