File tree Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Expand file tree Collapse file tree 4 files changed +20
-6
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,11 @@ updates:
12
12
directory : " /tutorial/whatsup"
13
13
schedule :
14
14
interval : " monthly"
15
+ - package-ecosystem : " github-actions"
16
+ directory : " /"
17
+ schedule :
18
+ interval : " monthly"
19
+ groups :
20
+ github-actions :
21
+ patterns :
22
+ - " *"
Original file line number Diff line number Diff line change @@ -12,12 +12,12 @@ jobs:
12
12
steps :
13
13
- name : Dependabot metadata
14
14
id : metadata
15
- uses : dependabot/fetch-metadata@v1
15
+ uses : dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
16
16
with :
17
17
github-token : " ${{ secrets.GITHUB_TOKEN }}"
18
18
- name : Enable auto-merge for Dependabot PRs
19
19
if : ${{steps.metadata.outputs.update-type == 'version-update:semver-minor' || steps.metadata.outputs.update-type == 'version-update:semver-patch'}}
20
20
run : gh pr merge --auto --merge "$PR_URL"
21
21
env :
22
22
PR_URL : ${{github.event.pull_request.html_url}}
23
- GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
23
+ GITHUB_TOKEN : ${{secrets.GITHUB_TOKEN}}
Original file line number Diff line number Diff line change @@ -42,11 +42,11 @@ jobs:
42
42
43
43
steps :
44
44
- name : Checkout repository
45
- uses : actions/checkout@v2
45
+ uses : actions/checkout@ee0669bd1cc54295c223e0bb666b733df41de1c5 # v2.7.0
46
46
47
47
# Initializes the CodeQL tools for scanning.
48
48
- name : Initialize CodeQL
49
- uses : github/codeql-action/init@v1
49
+ uses : github/codeql-action/init@231aa2c8a89117b126725a0e11897209b7118144 # v1.1.39
50
50
with :
51
51
languages : ${{ matrix.language }}
52
52
# If you wish to specify custom queries, you can do so here or in a config file.
57
57
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
58
58
# If this step fails, then you should remove it and run the build manually (see below)
59
59
- name : Autobuild
60
- uses : github/codeql-action/autobuild@v1
60
+ uses : github/codeql-action/autobuild@231aa2c8a89117b126725a0e11897209b7118144 # v1.1.39
61
61
62
62
# ℹ️ Command-line programs to run using the OS shell.
63
63
# 📚 https://git.io/JvXDl
71
71
# make release
72
72
73
73
- name : Perform CodeQL Analysis
74
- uses : github/codeql-action/analyze@v1
74
+ uses : github/codeql-action/analyze@231aa2c8a89117b126725a0e11897209b7118144 # v1.1.39
Original file line number Diff line number Diff line change 12
12
- " .golangci.yml"
13
13
pull_request :
14
14
15
+ permissions : # added using https://github.com/step-security/secure-repo
16
+ contents : read
17
+
15
18
jobs :
16
19
golangci :
20
+ permissions :
21
+ contents : read # for actions/checkout to fetch code
22
+ pull-requests : read # for golangci/golangci-lint-action to fetch pull requests
17
23
name : lint
18
24
runs-on : ubuntu-latest
19
25
steps :
You can’t perform that action at this time.
0 commit comments