Skip to content

Commit 4fc0274

Browse files
Merge branch 'main' into docs/custom-listen-ports
2 parents 9eb89d7 + adc42b7 commit 4fc0274

File tree

15 files changed

+129
-127
lines changed

15 files changed

+129
-127
lines changed

.github/labeler.yml

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,29 @@
1+
change:
2+
- head-branch: ['^change/']
3+
14
enhancement:
2-
- branch: ['feature/**', 'feat/**', 'enhancement/**', 'enh/**']
5+
- head-branch: ['^feature/', '^feat/', '^enhancement/', '^enh/']
36

47
bug:
5-
- branch: ['fix/**', 'bug/**']
8+
- head-branch: ['^fix/', '^bug/']
69

710
chore:
8-
- branch: ['chore/**']
11+
- head-branch: ['^chore/']
912

1013
tests:
11-
- branch: ['tests/**', 'test/**']
12-
- tests/**/*
13-
- perf-tests/**/*
14+
- any:
15+
- head-branch: ['^tests/', '^test/']
16+
- changed-files: ['tests/**/*', 'perf-tests/**/*']
17+
- all:
18+
- changed-files: ['!tests/requirements.txt', '!perf-tests/requirements.txt']
1419

1520
documentation:
16-
- branch: ['docs/**', 'doc/**']
17-
- '**/*.md'
21+
- head-branch: ['^docs/', '^doc/']
22+
- changed-files: '**/*.md'
1823

1924
dependencies:
20-
- branch: ['deps/**', 'dep/**', 'dependabot/**']
21-
- go.mod
22-
- go.sum
25+
- head-branch: ['^deps/', '^dep/', '^dependabot/', 'pre-commit-ci-update-config']
26+
- changed-files: ['go.mod', 'go.sum']
2327

2428
helm_chart:
25-
- deployments/helm-chart/**/*
29+
- changed-files: ['deployments/helm-chart/**/*']

.github/workflows/build-oss.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ jobs:
110110
tags: |
111111
type=edge
112112
type=ref,event=pr
113-
type=schedule
113+
type=schedule,enable=${{ inputs.tag == '' }}
114114
type=semver,pattern={{version}}
115115
type=semver,pattern={{major}}.{{minor}}
116116
type=raw,value=${{ inputs.tag }},enable=${{ inputs.tag != '' }}
@@ -157,7 +157,7 @@ jobs:
157157
ignore-unfixed: "true"
158158

159159
- name: Upload Trivy scan results to GitHub Security tab
160-
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
160+
uses: github/codeql-action/upload-sarif@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
161161
continue-on-error: true
162162
with:
163163
sarif_file: "trivy-results-${{ inputs.image }}.sarif"

.github/workflows/build-plus.yml

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -20,17 +20,17 @@ defaults:
2020
run:
2121
shell: bash
2222

23-
permissions: # added using https://github.com/step-security/secure-workflows
23+
permissions:
2424
contents: read
2525

2626
jobs:
2727
build:
28-
permissions:
29-
contents: read # for docker/build-push-action to read repo content
30-
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
31-
id-token: write # for OIDC login to AWS
32-
runs-on: ubuntu-22.04
33-
steps:
28+
permissions:
29+
contents: read # for docker/build-push-action to read repo content
30+
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
31+
id-token: write # for OIDC login to AWS
32+
runs-on: ubuntu-22.04
33+
steps:
3434
- name: Checkout Repository
3535
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3636
with:
@@ -90,7 +90,7 @@ jobs:
9090
name=gcr.io/f5-gcs-7899-ptg-ingrss-ctlr/release/nginx-ic${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }}/nginx-plus-ingress,enable=${{ startsWith(github.ref, 'refs/tags/') }}
9191
name=709825985650.dkr.ecr.us-east-1.amazonaws.com/nginx/nginx-plus-ingress${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }},enable=${{ startsWith(github.ref, 'refs/tags/') && contains(inputs.target, 'aws') }}
9292
flavor: |
93-
suffix=${{ contains(inputs.image, 'ubi') && '-ubi' || '' }}${{ contains(inputs.image, 'alpine') && '-alpine' || '' }}${{ contains(inputs.target, 'aws') && '-mktpl' || '' }},onlatest=true
93+
suffix=${{ contains(inputs.image, 'ubi') && '-ubi' || '' }}${{ contains(inputs.image, 'alpine') && '-alpine' || '' }}${{ contains(inputs.target, 'aws') && '-mktpl' || '' }}${{ contains(inputs.image, 'fips') && '-fips' || ''}},onlatest=true
9494
latest=${{ contains(inputs.target, 'aws') && 'false' || 'auto' }}
9595
tags: |
9696
type=edge
@@ -119,7 +119,7 @@ jobs:
119119
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
120120
with:
121121
file: build/Dockerfile
122-
context: '.'
122+
context: "."
123123
cache-from: type=gha,scope=${{ inputs.image }}${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }}
124124
cache-to: type=gha,scope=${{ inputs.image }}${{ contains(inputs.nap_modules, 'dos') && '-dos' || '' }}${{ contains(inputs.nap_modules, 'waf') && '-nap' || '' }},mode=max
125125
target: ${{ inputs.target }}
@@ -146,7 +146,7 @@ jobs:
146146
uses: docker/build-push-action@2eb1c1961a95fc15694676618e422e8ba1d63825 # v4.1.1
147147
with:
148148
file: build/Dockerfile
149-
context: '.'
149+
context: "."
150150
cache-from: type=gha,scope=${{ inputs.image }}
151151
target: ${{ inputs.target }}
152152
tags: docker.io/${{ inputs.image }}:${{ steps.meta.outputs.version }}
@@ -166,20 +166,20 @@ jobs:
166166
continue-on-error: true
167167
with:
168168
image-ref: docker.io/${{ inputs.image }}:${{ steps.meta.outputs.version }}
169-
format: 'sarif'
170-
output: 'trivy-results-${{ inputs.image }}.sarif'
171-
ignore-unfixed: 'true'
169+
format: "sarif"
170+
output: "trivy-results-${{ inputs.image }}.sarif"
171+
ignore-unfixed: "true"
172172

173173
- name: Upload Trivy scan results to GitHub Security tab
174-
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
174+
uses: github/codeql-action/upload-sarif@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
175175
continue-on-error: true
176176
with:
177-
sarif_file: 'trivy-results-${{ inputs.image }}.sarif'
177+
sarif_file: "trivy-results-${{ inputs.image }}.sarif"
178178

179179
- name: Upload Scan Results
180180
uses: actions/upload-artifact@0b7f8abb1508181956e8e162db84b466c27e18ce # v3.1.2
181181
continue-on-error: true
182182
with:
183-
name: 'trivy-results-${{ inputs.image }}.sarif'
184-
path: 'trivy-results-${{ inputs.image }}.sarif'
183+
name: "trivy-results-${{ inputs.image }}.sarif"
184+
path: "trivy-results-${{ inputs.image }}.sarif"
185185
if: always()

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -327,7 +327,7 @@ jobs:
327327
strategy:
328328
fail-fast: false
329329
matrix:
330-
image: [debian-plus, alpine-plus]
330+
image: [debian-plus, alpine-plus, alpine-plus-fips]
331331
platforms: ["linux/arm64, linux/amd64"]
332332
target: [goreleaser, aws]
333333
include:

.github/workflows/codeql-analysis.yml

Lines changed: 36 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -2,63 +2,66 @@ name: "CodeQL"
22

33
on:
44
push:
5-
branches: [ main, release-* ]
5+
branches:
6+
- main
7+
- release-*
68
pull_request:
79
# The branches below must be a subset of the branches above
8-
branches: [ main ]
10+
branches:
11+
- main
912
schedule:
10-
- cron: '36 6 * * 4' # run every Thursday at 06:36 UTC
13+
- cron: "36 6 * * 4" # run every Thursday at 06:36 UTC
1114

1215
concurrency:
1316
group: ${{ github.ref_name }}-codeql
1417
cancel-in-progress: true
1518

16-
permissions: # added using https://github.com/step-security/secure-workflows
19+
permissions:
1720
contents: read
1821

1922
jobs:
2023
analyze:
2124
permissions:
22-
actions: read # for github/codeql-action/init to get workflow details
23-
contents: read # for actions/checkout to fetch code
24-
security-events: write # for github/codeql-action/autobuild to send a status report
25+
actions: read # for github/codeql-action/init to get workflow details
26+
contents: read # for actions/checkout to fetch code
27+
security-events: write # for github/codeql-action/autobuild to send a status report
2528
name: Analyze
2629
runs-on: ubuntu-latest
2730

2831
strategy:
2932
fail-fast: false
3033
matrix:
31-
language: [ 'go', 'python' ]
34+
language: ["go", "python"]
3235

3336
steps:
34-
- name: Checkout repository
35-
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
37+
- name: Checkout repository
38+
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
3639

37-
# Initializes the CodeQL tools for scanning.
38-
- name: Initialize CodeQL
39-
uses: github/codeql-action/init@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
40-
with:
41-
languages: ${{ matrix.language }}
42-
# If you wish to specify custom queries, you can do so here or in a config file.
43-
# By default, queries listed here will override any specified in a config file.
44-
# Prefix the list here with "+" to use these queries and those in the config file.
45-
# queries: ./path/to/local/query, your-org/your-repo/queries@main
40+
# Initializes the CodeQL tools for scanning.
41+
- name: Initialize CodeQL
42+
uses: github/codeql-action/init@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
43+
with:
44+
languages: ${{ matrix.language }}
45+
# If you wish to specify custom queries, you can do so here or in a config file.
46+
# By default, queries listed here will override any specified in a config file.
47+
# Prefix the list here with "+" to use these queries and those in the config file.
48+
# queries: ./path/to/local/query, your-org/your-repo/queries@main
4649

47-
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
48-
# If this step fails, then you should remove it and run the build manually (see below)
49-
- name: Autobuild
50-
uses: github/codeql-action/autobuild@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
50+
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
51+
# If this step fails, then you should remove it and run the build manually (see below)
52+
- name: Autobuild
53+
uses: github/codeql-action/autobuild@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
5154

52-
# ℹ️ Command-line programs to run using the OS shell.
53-
# 📚 https://git.io/JvXDl
55+
# ℹ️ Command-line programs to run using the OS shell.
56+
# 📚 https://git.io/JvXDl
5457

55-
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
56-
# and modify them (or add more) to build your code if your project
57-
# uses a compiled language
58+
# ✏️ If the Autobuild fails above, remove it and uncomment the following three lines
59+
# and modify them (or add more) to build your code if your project
60+
# uses a compiled language
5861

59-
#- run: |
60-
# make bootstrap
61-
# make release
62+
#- run: |
63+
# make bootstrap
64+
# make release
6265

63-
- name: Perform CodeQL Analysis
64-
uses: github/codeql-action/analyze@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
66+
- name: Perform CodeQL Analysis
67+
uses: github/codeql-action/analyze@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1

.github/workflows/labeler.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,16 +2,16 @@ name: "Pull Request Labeler"
22
on:
33
- pull_request_target
44

5-
permissions: # added using https://github.com/step-security/secure-workflows
5+
permissions:
66
contents: read
77

88
jobs:
99
triage:
1010
permissions:
1111
contents: read
1212
pull-requests: write
13-
runs-on: ubuntu-latest
13+
runs-on: ubuntu-22.04
1414
steps:
15-
- uses: joshdales/labeler@7b1327b4c44a8794dfc7573d60637cd60ce4b697 # if https://github.com/actions/labeler/pull/203 is merged, use the official action actions/labeler
16-
with:
17-
repo-token: "${{ secrets.GITHUB_TOKEN }}"
15+
- uses: actions/labeler@4f052778de9a9b80cb16cfb9079b02287285a4cb # v5.0.0-alpha.1
16+
with:
17+
repo-token: "${{ secrets.GITHUB_TOKEN }}"

.github/workflows/scorecards.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ on:
33
# Only the default branch is supported.
44
branch_protection_rule:
55
schedule:
6-
- cron: '43 20 * * 0' # run every Sunday at 20:43 UTC
6+
- cron: "43 20 * * 0" # run every Sunday at 20:43 UTC
77
push:
8-
branches: [ "main" ]
8+
branches:
9+
- main
910

1011
# Declare default permissions as read only.
1112
permissions: read-all
@@ -53,6 +54,6 @@ jobs:
5354

5455
# Upload the results to GitHub's code scanning dashboard.
5556
- name: "Upload to code-scanning"
56-
uses: github/codeql-action/upload-sarif@cdcdbb579706841c47f7063dda365e292e5cad7a # v2.13.4
57+
uses: github/codeql-action/upload-sarif@f6e388ebf0efc915c6c5b165b019ee61a6746a38 # v2.20.1
5758
with:
5859
sarif_file: results.sarif

.github/workflows/updates-notification.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ jobs:
2525
- name: Checkout Repository
2626
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
2727
with:
28-
ref: ${{ inputs.tag }}
28+
ref: refs/tags/v${{ inputs.tag }}
2929
- name: Get variables for Slack
3030
id: slack
3131
run: |

0 commit comments

Comments
 (0)