Skip to content

Commit 3d142a8

Browse files
author
Måns Thörnvik
committed
Update
1 parent 9e62b10 commit 3d142a8

4 files changed

Lines changed: 57 additions & 8 deletions

File tree

.github/dependabot.yml

Lines changed: 47 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,50 @@
1-
# To get started with Dependabot version updates, you'll need to specify which
2-
# package ecosystems to update and where the package manifests are located.
3-
# Please see the documentation for all configuration options:
4-
# https://docs.github.com/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file
5-
61
version: 2
2+
73
updates:
8-
- package-ecosystem: "actions" # See documentation for possible values
9-
directory: "/" # Location of package manifests
4+
- package-ecosystem: gomod
5+
directory: /sample-go-app
6+
schedule:
7+
interval: weekly
8+
groups:
9+
minor:
10+
update-types:
11+
- minor
12+
patches:
13+
update-types:
14+
- patch
15+
16+
- package-ecosystem: pip
17+
directory: /sample-py-app
18+
schedule:
19+
interval: weekly
20+
groups:
21+
minor:
22+
update-types:
23+
- minor
24+
patches:
25+
update-types:
26+
- patch
27+
28+
- package-ecosystem: docker
29+
directory: /sample-go-app
30+
schedule:
31+
interval: weekly
32+
groups:
33+
minor:
34+
update-types:
35+
- minor
36+
patches:
37+
update-types:
38+
- patch
39+
40+
- package-ecosystem: github-actions
41+
directory: /
1042
schedule:
11-
interval: "weekly"
43+
interval: weekly
44+
groups:
45+
minor:
46+
update-types:
47+
- minor
48+
patches:
49+
update-types:
50+
- patch

.github/workflows/go.yaml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ on:
55

66
permissions:
77
contents: read
8+
security-events: write
89

910
jobs:
1011
build:
@@ -46,6 +47,13 @@ jobs:
4647
with:
4748
version: v2.12.0
4849
working-directory: sample-go-app
50+
args: --output.sarif.path=results.sarif
51+
52+
- name: Upload SARIF report
53+
if: always() && matrix.go-version-alias == 'stable'
54+
uses: github/codeql-action/upload-sarif@v3
55+
with:
56+
sarif_file: sample-go-app/results.sarif
4957

5058
- name: Install dependencies
5159
run: go mod download

.github/workflows/main.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212
packages: write
13+
security-events: write
1314

1415
jobs:
1516
go:

.github/workflows/pull-request.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ on:
1010
permissions:
1111
contents: read
1212
packages: write
13+
security-events: write
1314

1415
jobs:
1516
go:

0 commit comments

Comments
 (0)