File tree Expand file tree Collapse file tree 8 files changed +166
-116
lines changed Expand file tree Collapse file tree 8 files changed +166
-116
lines changed Original file line number Diff line number Diff line change @@ -161,7 +161,7 @@ jobs:
161
161
ignore-unfixed : " true"
162
162
163
163
- name : Upload Trivy scan results to GitHub Security tab
164
- uses : github/codeql-action/upload-sarif@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
164
+ uses : github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
165
165
continue-on-error : true
166
166
with :
167
167
sarif_file : " trivy-results-${{ inputs.image }}.sarif"
Original file line number Diff line number Diff line change @@ -204,7 +204,7 @@ jobs:
204
204
ignore-unfixed : " true"
205
205
206
206
- name : Upload Trivy scan results to GitHub Security tab
207
- uses : github/codeql-action/upload-sarif@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
207
+ uses : github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
208
208
continue-on-error : true
209
209
with :
210
210
sarif_file : " trivy-results-${{ inputs.image }}.sarif"
Original file line number Diff line number Diff line change 39
39
40
40
# Initializes the CodeQL tools for scanning.
41
41
- name : Initialize CodeQL
42
- uses : github/codeql-action/init@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
42
+ uses : github/codeql-action/init@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
43
43
with :
44
44
languages : ${{ matrix.language }}
45
45
# If you wish to specify custom queries, you can do so here or in a config file.
50
50
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51
51
# If this step fails, then you should remove it and run the build manually (see below)
52
52
- name : Autobuild
53
- uses : github/codeql-action/autobuild@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
53
+ uses : github/codeql-action/autobuild@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
54
54
55
55
# ℹ️ Command-line programs to run using the OS shell.
56
56
# 📚 https://git.io/JvXDl
64
64
# make release
65
65
66
66
- name : Perform CodeQL Analysis
67
- uses : github/codeql-action/analyze@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
67
+ uses : github/codeql-action/analyze@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
Original file line number Diff line number Diff line change
1
+ name : Run hugo commands on Dependabot PRs
2
+
3
+ on :
4
+ pull_request :
5
+ paths :
6
+ - " docs/go.mod"
7
+
8
+ permissions :
9
+ contents : read
10
+
11
+ defaults :
12
+ run :
13
+ shell : bash
14
+
15
+ jobs :
16
+ build :
17
+ if : ${{ github.event.pull_request.user.login == 'dependabot[bot]' }}
18
+ runs-on : ubuntu-22.04
19
+ permissions :
20
+ contents : write
21
+ pull-requests : read
22
+ steps :
23
+ - name : Fetch Dependabot metadata
24
+ id : dependabot-metadata
25
+ uses : dependabot/fetch-metadata@c9c4182bf1b97f5224aee3906fd373f6b61b4526 # v1.6.0
26
+
27
+ - name : Checkout Repository
28
+ uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
29
+ if : ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'gomod' && contains(steps.dependabot-metadata.outputs.dependency-names, 'hugo') }}
30
+ with :
31
+ ref : ${{ github.head_ref }}
32
+ token : ${{ secrets.NGINX_PAT }}
33
+
34
+ - name : Setup Hugo
35
+ uses : peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d # v2.6.0
36
+ if : ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'gomod' && contains(steps.dependabot-metadata.outputs.dependency-names, 'hugo') }}
37
+
38
+ - name : Run build
39
+ if : ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'gomod' && contains(steps.dependabot-metadata.outputs.dependency-names, 'hugo') }}
40
+ run : |
41
+ hugo mod tidy
42
+ hugo mod verify
43
+
44
+ - name : Commit changes
45
+ if : ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'gomod' && contains(steps.dependabot-metadata.outputs.dependency-names, 'hugo') }}
46
+ id : commit
47
+ uses : stefanzweifel/git-auto-commit-action@3ea6ae190baf489ba007f7c92608f33ce20ef04a # v4.16.0
48
+ with :
49
+ commit_message : " Update docs go.mod"
Original file line number Diff line number Diff line change 23
23
uses : actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
24
24
25
25
- name : " Dependency Review"
26
- uses : actions/dependency-review-action@1360a344ccb0ab6e9475edef90ad2f46bf8003b1 # v3.0.6
26
+ uses : actions/dependency-review-action@7d90b4f05fea31dde1c4a1fb3fa787e197ea93ab # v3.0.7
27
27
with :
28
28
config-file : " nginxinc/k8s-common/dependency-review-config.yml@main"
Original file line number Diff line number Diff line change 54
54
55
55
# Upload the results to GitHub's code scanning dashboard.
56
56
- name : " Upload to code-scanning"
57
- uses : github/codeql-action/upload-sarif@5b6282e01c62d02e720b81eb8a51204f527c3624 # v2.21.3
57
+ uses : github/codeql-action/upload-sarif@a09933a12a80f87b87005513f0abb1494c27a716 # v2.21.4
58
58
with :
59
59
sarif_file : results.sarif
Original file line number Diff line number Diff line change @@ -254,7 +254,7 @@ LABEL org.nginx.kic.image.build.nginx.version="${NGINX_PLUS_VERSION}${NGINX_VERS
254
254
255
255
256
256
# ############################################ Build nginx-ingress in golang container #############################################
257
- FROM golang:1.20 -alpine AS builder
257
+ FROM golang:1.21 -alpine AS builder
258
258
ARG IC_VERSION
259
259
ARG TARGETARCH
260
260
You can’t perform that action at this time.
0 commit comments