Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

testing PR #9

Open
wants to merge 181 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
181 commits
Select commit Hold shift + click to select a range
830d433
Add server-side metrics (#236)
thao-wish Mar 19, 2021
2fd9134
Clarify memcache client constraints (#239)
Mar 23, 2021
5f6cee9
Support multiple memcache hosts in memcache backend (#238)
Mar 25, 2021
c03723f
redis: fix per-second pipeline config bug and update doc (#240)
caitong93 Mar 30, 2021
db2f642
Add env var to configure max idle connections per memcache node (#246)
petedmarsh May 25, 2021
1f0aec5
delete unuseful code (#254)
devincd May 25, 2021
83a222a
Hook up /debug/pprof/trace (#249)
petedmarsh May 25, 2021
bc0e9fa
GRPC, HTTP, and Debug server listen addresses fully configurable (#252)
sunjayBhatia May 25, 2021
60c8eb0
Fix flaky test TestServiceLegacy (#258)
sunjayBhatia May 25, 2021
60ba180
Add support for SRV records for memcache clients (#253)
petedmarsh May 27, 2021
c0cdd75
Reduce short living tasks produced by memcached implementation and mo…
storozhukBM May 28, 2021
6aaad7c
Metric refactor (#242)
pradnic Jun 2, 2021
edab0ec
Explicit unlimited ratelimits (#261)
lmajercak-wish Jul 7, 2021
68dceda
use flag.VisitAll function (#270)
devincd Jul 27, 2021
bd46f11
update readme with deprecation, versioning details (#272)
ysawa0 Jul 28, 2021
73ad2b3
Fix bug and code optimization (#273)
devincd Jul 29, 2021
4bb3282
Remove support for legacy v2 api (#278)
ysawa0 Aug 3, 2021
d331181
add sha for docker image with legacy v2 api removed (#279)
ysawa0 Aug 4, 2021
b42701c
don't drop non-specified metrics in docker example (#283)
ysawa0 Aug 12, 2021
38bc146
owners: add Yuki (#284)
mattklein123 Aug 23, 2021
9c22ef4
Configurable Redis TLS Config through settings (#289)
JavierR14 Sep 9, 2021
568c537
Add configurable GrpcMaxConnectionAge, GrpcMaxConnectionAgeGrace (#288)
lmajercak-wish Sep 10, 2021
ced4263
Fix MEMCACHED_SRV support (#295)
petedmarsh Sep 28, 2021
35b6056
Addressing issue #291 - Adding custom headers with the ratelimit trig…
jespersoderlund Sep 29, 2021
1c1d46e
293 shadowmode (#294)
jespersoderlund Oct 5, 2021
21fc4d3
CI: Add pre-commit linters, autoformatters (#299)
ysawa0 Oct 5, 2021
b163a2d
Do not panic on debug /rlconfig if no config loaded (#306)
fishcakez Oct 25, 2021
330a681
health check failed if no active redis connection (#310)
debbyku Nov 7, 2021
f2c9a16
Tests for memcache hosts via SRV (#298)
petedmarsh Nov 9, 2021
0a85f51
Incorrectly count redis active connection (#312)
debbyku Nov 26, 2021
4d2efd6
Fix memcached shards being inconsistent when looking up hosts by SRV …
petedmarsh Dec 22, 2021
49fbf58
TLS config pointer is never nil which regresses TLS Support (#318)
vsabella Jan 24, 2022
8d6488e
Upgrade to Golang v1.17 and Alpine 3.15 (#320)
vsabella Jan 24, 2022
d9b92a7
Update golang x/net to latest version to repair CVEs (#324)
vsabella Mar 31, 2022
dbfc019
Produce multi-arch Docker image for x86/arm64 (#325)
otterley Apr 7, 2022
5b6e65d
Allow to set key-pair for the Redis TLS connection (#328)
dio Apr 18, 2022
c37fa45
Implemented OpenTelemetry Instrumentation (#332)
ethernoy May 12, 2022
548acf0
Add support for mTLS between envoy and the rate limiter (#336)
harsimranmaan May 20, 2022
8655817
fix typed_config for envoy.filters.http.router (#340)
deferraz Jun 24, 2022
1f4ea68
Add descriptor replacing (#344)
bkthomps Jul 13, 2022
db150da
Mask redis credentials in logs (#347)
m-rcl Jul 26, 2022
9d8d70a
Upgrade mediocregopher/radix/v3 (#352)
renuka-fernando Aug 16, 2022
7b60ac7
Allow merge of configs referencing the same domain (#357)
m-rcl Sep 1, 2022
ea444b1
Reload configuration when deleting config files (#361)
m-rcl Sep 12, 2022
73d7295
Upgrade golang.org/x/net (#364)
dio Sep 19, 2022
3af40e6
Add support for Redis AUTH with username and password (#363)
Sep 22, 2022
0b2f4d5
tracing: make sampling rate configurable (#359)
pims Sep 28, 2022
bc3eca4
Fix data race issue in globalShadowMode variable (#370)
renuka-fernando Nov 4, 2022
a091203
Use _imaps._tcp.gmail.com in srv tests (#375)
arkodg Nov 15, 2022
3cb4326
Expose Config structures outside package (#374)
arkodg Nov 15, 2022
5e9a43f
Upgrade golang.org/x/text to 0.3.8 (#382)
renuka-fernando Dec 12, 2022
5f3f5a4
chore: bump golang.org/x/net dep for cve-2022-41717 fix (#391)
psinghal20 Jan 9, 2023
f28024e
Include value in metrics for unspecified value (#389)
jespersoderlund Jan 17, 2023
1a68686
Dynamic config update via xDS Management Server (#373)
renuka-fernando Feb 7, 2023
4c08885
Allow override of runtime app directory (#397)
PeterL328 Mar 2, 2023
4faac89
Update health-checks to be based on individual component health and a…
PeterL328 Mar 22, 2023
008b66a
Add wildcard support to descriptor values (#403)
Pawka Mar 27, 2023
542a604
Add possibility to provide additional headers to grpc request in xds …
Automaat Apr 3, 2023
58b9f5b
Fix flaky health check tests (#408)
PeterL328 Apr 4, 2023
3e7b643
add flag to skip hostname verification for redis connection (#409)
seanwinterberger Apr 14, 2023
278a7c2
Bump to golang 1.20 (#410)
arkodg Apr 19, 2023
42dc463
Use 0.7.0 version for golang.org/x/net to fix the vulnerability CVE-2…
vikaspalaskar Apr 19, 2023
e2a87f4
Fixed otel typo in (#417)
Tigraine Apr 27, 2023
b3562ca
fix wildcard support to cover nested descriptors (#420)
amiramw May 12, 2023
8f6a200
[docs] fix spelling errors in the readme (#425)
rgs1 May 24, 2023
ce3d747
Increment shadow metric regardless of local cache (#424)
upgle May 30, 2023
59565c8
Bump alpine base image (#426)
karataliu Jun 1, 2023
c97749c
Bump version of net, sys, and text modules. (#432)
pawel-docu Jun 14, 2023
e059638
Bump dependencies & docker base images (#434)
sfc-gh-jelsesiy Jun 27, 2023
965f0bc
Fix incrementing cache keys when overall status is over limited (#430)
chashikajw Aug 11, 2023
b1f66f2
Updates Golang minor version to resolve CVEs (#441)
ChuckCrawford Sep 10, 2023
e0f9f0e
Fix ratelimit counter issue when using multiple descriptors (#443)
chashikajw Sep 14, 2023
33c8573
Update alpine version to fix CVEs (#445)
psalaberria002 Sep 14, 2023
624a589
Modify the comment (#447)
chashikajw Sep 16, 2023
a34dbf9
fix: Update golang 1.20.8 and go x/net to 0.15 for CVE-2023-3978 (#448)
vsabella Sep 21, 2023
b979623
Lint Cleanup (#452)
ChuckCrawford Oct 9, 2023
62bd52d
Updates Golang and deps with CVEs (#454)
ChuckCrawford Nov 6, 2023
5e1be59
fix: update xds-sotw-config-server example dockerfile golang version …
dmi3zkm Nov 10, 2023
b095d15
Dependency Updates for CVE Resolutions (#463)
ChuckCrawford Dec 6, 2023
97c2f6f
Update alpine version to fix CVEs (#464)
rayseaward Dec 19, 2023
9a18294
setup ossf scorecard and codql workflows (#466)
mmorel-35 Jan 6, 2024
f552371
Bump actions/setup-python from 2.3.4 to 5.0.0 (#478)
dependabot[bot] Jan 11, 2024
35f3e3a
Bump ossf/scorecard-action from 2.1.2 to 2.3.1 (#469)
dependabot[bot] Jan 12, 2024
d87236e
add OSSF Scorecard badge to README.md (#482)
mmorel-35 Jan 15, 2024
763fd8e
stats: sanitize metric names (#481)
wybczu Jan 15, 2024
9901a9b
Add detailed_metric support for xds-config (#465)
akondapuram Feb 7, 2024
f3b6730
Bump actions/setup-go from 2.2.0 to 5.0.0 (#484)
dependabot[bot] Feb 18, 2024
19f2079
Retry the grpc connection when there's an error (#503)
akondapuram Feb 23, 2024
78ed1dc
fix: init gostats to not flood log (#520)
guilhem Mar 27, 2024
3678e41
chore: remove trailing line (#545)
guilhem Mar 29, 2024
4c3754b
Bump github/codeql-action from 2.2.4 to 3.24.9 (#543)
dependabot[bot] Mar 29, 2024
4b1dcb2
Bump actions/checkout from 2.7.0 to 4.1.2 (#541)
dependabot[bot] Mar 29, 2024
3654bfd
Bump docker/setup-buildx-action from 1.7.0 to 3.2.0 (#539)
dependabot[bot] Mar 29, 2024
247089f
config: fix detailed metric keys missing in leading keys (#528)
birdayz Apr 4, 2024
7f35f22
fix(Stats): restore stdout stats option, allow flush interval to be c…
zakhenry Apr 5, 2024
7adf8cc
Bump github.com/stretchr/testify from 1.8.4 to 1.9.0 (#548)
dependabot[bot] Apr 5, 2024
95e2a6e
Bump actions/setup-python from 5.0.0 to 5.1.0 (#546)
dependabot[bot] Apr 5, 2024
214a6d5
Bump go.opentelemetry.io/otel/sdk from 1.21.0 to 1.24.0 (#547)
dependabot[bot] Apr 5, 2024
9a3bb6c
Bump google.golang.org/grpc in /examples/xds-sotw-config-server (#537)
dependabot[bot] Apr 5, 2024
103cdde
Bump golang from 1.21.5 to 1.22.1 (#536)
dependabot[bot] Apr 5, 2024
6e2c37f
Bump golang from 1.21.5 to 1.22.1 in /examples/xds-sotw-config-server…
dependabot[bot] Apr 5, 2024
ecd76b2
Bump google.golang.org/grpc from 1.59.0 to 1.63.0 (#551)
dependabot[bot] Apr 5, 2024
4537d29
Update alpine to 3.18.6 to address openssl vulnerability (#531)
alexhwcheng Apr 5, 2024
82a4fb5
use `google.golang.org/protobuf` instead of `github.com/golang/protob…
mmorel-35 Apr 7, 2024
b68fb90
Add support for starting the server on a unix domain sockets (#542)
healthwaite Apr 13, 2024
fea2f30
Bump github/codeql-action from 3.24.9 to 3.24.10 (#554)
dependabot[bot] Apr 13, 2024
d98c580
Bump golang from 1.22.1 to 1.22.2 (#560)
dependabot[bot] Apr 13, 2024
8b6a44b
Bump google.golang.org/grpc in /examples/xds-sotw-config-server (#562)
dependabot[bot] Apr 13, 2024
a618388
Bump github.com/lyft/gostats from 0.4.12 to 0.4.13 (#558)
dependabot[bot] Apr 19, 2024
3fcc360
Bump golang from 1.22.1 to 1.22.2 in /examples/xds-sotw-config-server…
dependabot[bot] Apr 19, 2024
ca55e1b
Bump actions/upload-artifact from 3.1.0 to 4.3.3 (#577)
dependabot[bot] May 5, 2024
aae80dc
Bump github.com/lyft/gostats from 0.4.13 to 0.4.14 (#609)
dependabot[bot] Jun 7, 2024
b779269
Bump github/codeql-action from 3.24.10 to 3.25.7 (#608)
dependabot[bot] Jun 7, 2024
e4fec80
Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc …
dependabot[bot] Jun 7, 2024
e754e7f
Bump alpine from `51b6726` to `77726ef` in /integration-test (#600)
dependabot[bot] Jun 7, 2024
695c1ef
Bump alpine from 3.16 to 3.20 in /examples/xds-sotw-config-server (#599)
dependabot[bot] Jun 7, 2024
0f73f89
Bump alpine from 3.18.6 to 3.20.0 (#598)
dependabot[bot] Jun 7, 2024
f17d88f
Including the name in the ratelimit descriptor so that it is returned…
jespersoderlund Jun 7, 2024
2b7813e
Bump golang.org/x/net from 0.25.0 to 0.26.0 (#611)
dependabot[bot] Jun 7, 2024
470a044
Bump google.golang.org/grpc in /examples/xds-sotw-config-server (#591)
dependabot[bot] Jun 7, 2024
573747d
Bump ossf/scorecard-action from 2.3.1 to 2.3.3 (#590)
dependabot[bot] Jun 7, 2024
23943f9
Bump actions/checkout from 4.1.2 to 4.1.6 (#589)
dependabot[bot] Jun 7, 2024
e34bcd0
Bump golang from 1.22.2 to 1.22.3 in /examples/xds-sotw-config-server…
dependabot[bot] Jun 7, 2024
0e03176
Bump actions/setup-go from 5.0.0 to 5.0.1 (#578)
dependabot[bot] Jun 7, 2024
71e2eb7
Bump golang from 1.22.2 to 1.22.3 (#584)
dependabot[bot] Jun 7, 2024
be31f86
Add TLS support to memcache (#594)
isker Jun 7, 2024
c5ac0f0
fix(redis): use logger instead of println (#606)
jwillker Jun 10, 2024
0895db5
Initial integration of DogStatsD (#585)
JDeuce Jun 14, 2024
cc77e95
Bump google.golang.org/protobuf from 1.34.1 to 1.34.2 (#622)
dependabot[bot] Jun 18, 2024
f1e143b
Bump github/codeql-action from 3.25.7 to 3.25.10 (#621)
dependabot[bot] Jun 18, 2024
5701cd6
Bump actions/checkout from 4.1.6 to 4.1.7 (#620)
dependabot[bot] Jun 18, 2024
cdf0405
Bump golang from 1.22.3 to 1.22.4 in /examples/xds-sotw-config-server…
dependabot[bot] Jun 18, 2024
4f3c99d
Bump golang from 1.22.3 to 1.22.4 (#617)
dependabot[bot] Jun 18, 2024
92487ac
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/gr…
dependabot[bot] Jun 18, 2024
e509f36
Bump github.com/alicebob/miniredis/v2 from 2.31.0 to 2.33.0 (#614)
dependabot[bot] Jun 18, 2024
7ca7eca
Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracehttp …
dependabot[bot] Jun 18, 2024
0ddd444
feat: add log error in should ratelimit (#612)
jwillker Jun 18, 2024
db7fc78
feat: add stat for domain not found (#624)
JDeuce Jun 20, 2024
00d7d6c
feat(dogstatsd_sink): support EXTRA_TAGS (#625)
JDeuce Jun 20, 2024
91484c5
fix(dogstatsd_sink): switch from pure map to list of key/value pairs …
JDeuce Jun 20, 2024
3d87d0e
Bump alpine from 3.20.0 to 3.20.2 (#661)
dependabot[bot] Aug 1, 2024
c1de7ec
Bump docker/setup-qemu-action from 1.2.0 to 3.2.0 (#660)
dependabot[bot] Aug 1, 2024
c5bbc24
Bump github/codeql-action from 3.25.10 to 3.25.15 (#659)
dependabot[bot] Aug 1, 2024
50d4d19
Bump docker/setup-buildx-action from 3.2.0 to 3.5.0 (#658)
dependabot[bot] Aug 1, 2024
321e333
Bump alpine from `77726ef` to `0a4eaa0` in /integration-test (#657)
dependabot[bot] Aug 1, 2024
30a4ce1
improve go version, to fix security issue. (#656)
johnzheng1975 Aug 1, 2024
6a63b38
Bump actions/setup-python from 5.1.0 to 5.1.1 (#649)
dependabot[bot] Aug 1, 2024
b450b61
Bump google.golang.org/grpc in /examples/xds-sotw-config-server (#646)
dependabot[bot] Aug 1, 2024
30f27b0
Bump actions/upload-artifact from 4.3.3 to 4.3.4 (#644)
dependabot[bot] Aug 1, 2024
80b83bf
Bump go.opentelemetry.io/otel from 1.27.0 to 1.28.0 (#641)
dependabot[bot] Aug 1, 2024
05bf226
Bump go.opentelemetry.io/otel/trace from 1.27.0 to 1.28.0 (#640)
dependabot[bot] Aug 1, 2024
f4af2db
runner: close rate limiter on Stop (#635)
birdayz Aug 1, 2024
b3b7c4b
Add CertProvider to hot reload TLS certs for gRPC service (#587)
jayme-github Aug 1, 2024
9409674
Bump go.opentelemetry.io/otel/exporters/otlp/otlptrace/otlptracegrpc …
dependabot[bot] Aug 1, 2024
dfca264
Bump golang from 1.22.4 to 1.22.5 in /examples/xds-sotw-config-server…
dependabot[bot] Aug 1, 2024
803b65c
chore: run gofumpt (#664)
zirain Aug 2, 2024
722431e
Bump golang in /examples/xds-sotw-config-server (#674)
dependabot[bot] Aug 8, 2024
701e1c1
Bump google.golang.org/grpc from 1.64.0 to 1.65.0 (#673)
dependabot[bot] Aug 8, 2024
281d5fa
Bump go.opentelemetry.io/contrib/instrumentation/google.golang.org/gr…
dependabot[bot] Aug 8, 2024
322b220
build(deps): bump actions/upload-artifact from 4.3.4 to 4.3.6 (#679)
dependabot[bot] Aug 15, 2024
c58b4c8
build(deps): bump golang in /examples/xds-sotw-config-server (#676)
dependabot[bot] Aug 15, 2024
5e3841c
build(deps): bump golang from 1.22.5 to 1.22.6 (#677)
dependabot[bot] Aug 15, 2024
ae04944
build(deps): bump github/codeql-action from 3.25.15 to 3.26.0 (#678)
dependabot[bot] Aug 15, 2024
0e8a4fb
Bump actions/setup-go from 5.0.1 to 5.0.2 (#666)
dependabot[bot] Aug 15, 2024
26f28d7
Bump docker/setup-buildx-action from 3.5.0 to 3.6.1 (#667)
dependabot[bot] Aug 15, 2024
3a7d0e0
Bump ossf/scorecard-action from 2.3.3 to 2.4.0 (#669)
dependabot[bot] Aug 15, 2024
28b1629
implemnt Prometheus sink (#681)
zirain Sep 16, 2024
0e630f1
build(deps): bump alpine from 3.20.2 to 3.20.3 (#701)
dependabot[bot] Nov 8, 2024
ad9ee27
build(deps): bump alpine in /integration-test (#769)
dependabot[bot] Nov 21, 2024
65f8465
build(deps): bump alpine from `beefdbd` to `1e42bbe` (#768)
dependabot[bot] Nov 21, 2024
49af5cc
build(deps): bump golang from 1.22.6 to 1.23.3 (#763)
dependabot[bot] Nov 21, 2024
83a4d25
build(deps): bump golang in /examples/xds-sotw-config-server (#762)
dependabot[bot] Nov 21, 2024
15b5ac4
build(deps): bump github/codeql-action from 3.26.0 to 3.27.5 (#772)
dependabot[bot] Nov 25, 2024
a53a4fd
build(deps): bump golang from `d56c3e0` to `73f06be` (#771)
dependabot[bot] Nov 26, 2024
b9bb97a
build(deps): bump golang in /examples/xds-sotw-config-server (#770)
dependabot[bot] Dec 1, 2024
738fdce
fix go-fumpt args (#694)
zirain Dec 3, 2024
b2cf3b6
build(deps): bump actions/setup-python from 5.1.1 to 5.3.0 (#766)
dependabot[bot] Dec 3, 2024
1818d41
change to github.com/libp2p/go-reuseport (#774)
zirain Dec 5, 2024
d36a71b
enable rate limit for month and year (#743)
rpahli Dec 6, 2024
44de8d9
Fix time conversion for year (#775)
arkodg Dec 6, 2024
6a2e826
add prometheus sink debug info (#710)
zirain Dec 11, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
30 changes: 30 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
version: 2
updates:
- package-ecosystem: docker
directory: /
schedule:
interval: weekly
- package-ecosystem: docker
directory: /examples/xds-sotw-config-server
schedule:
interval: weekly
- package-ecosystem: docker
directory: /integration-test
schedule:
interval: weekly
- package-ecosystem: github-actions
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /
schedule:
interval: weekly
- package-ecosystem: gomod
directory: /examples/xds-sotw-config-server
schedule:
interval: weekly
- package-ecosystem: pip
directory: /
schedule:
interval: weekly
48 changes: 48 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: "CodeQL"

permissions:
actions: read
contents: read
security-events: write

on:
push:
branches: ["main"]
pull_request:
branches: ["main"]
schedule:
- cron: "30 11 * * 6"

jobs:
analyze:
name: Analyze
runs-on: ubuntu-latest
timeout-minutes: 360

strategy:
fail-fast: false
matrix:
language: ["go"]

steps:
- name: Checkout repository
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Install Go
uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version-file: go.mod

# Initializes the CodeQL tools for scanning.
- name: Initialize CodeQL
uses: github/codeql-action/init@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
languages: ${{ matrix.language }}

- name: Autobuild
uses: github/codeql-action/autobuild@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5

- name: Perform CodeQL Analysis
uses: github/codeql-action/analyze@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
category: "/language:${{matrix.language}}"
38 changes: 34 additions & 4 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
name: Build and push :master image

permissions:
contents: read

on:
push:
branches:
Expand All @@ -9,19 +12,46 @@ jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: check format
run: make check_format

build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0

- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: build and push docker image
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
VERSION=master make docker_push # Push image tagged with "master"
make docker_push # Push image tagged with git sha
VERSION=master make docker_multiarch_push # Push image tagged with "master"
make docker_multiarch_push # Push image tagged with git sha
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}

precommits:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.9"

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: "1.21.5"

- name: run pre-commits
run: |
make precommit_install
pre-commit run -a
37 changes: 34 additions & 3 deletions .github/workflows/pullrequest.yaml
Original file line number Diff line number Diff line change
@@ -1,21 +1,52 @@
name: CI Build and Test for PR

permissions:
contents: read

on:
pull_request:

jobs:
check:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: check format
run: make check_format

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: build and test
run: make docker_tests

precommits:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- uses: actions/setup-python@0b93645e9fea7318ecaed2b359559ac225c90a2b # v5.3.0
with:
python-version: "3.9"

- uses: actions/setup-go@0a12ed9d6a96ab950c8f026ed9f722fe0da7ef32 # v5.0.2
with:
go-version: "1.21.5"

- name: run pre-commits
run: |
make precommit_install
pre-commit run -a

# If previous stage fails, print resolution steps
- if: ${{ failure() }}
name: Read for resolution steps
run: |
make docker_tests
echo "Pre-commits failed! Run 'make precommit_install' then 'pre-commits run -a' to fix."
exit 1
20 changes: 15 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,26 +1,36 @@
name: Build and push :release image

permissions:
contents: read

on:
push:
tags:
- 'v*'
- "v*"

jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
- name: check format
run: make check_format
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7

- name: Set up QEMU
uses: docker/setup-qemu-action@49b3bc8e6bdd4a60e6116a5414239cba5943d3cf # v3.2.0

- name: Set up Docker buildx
id: buildx
uses: docker/setup-buildx-action@988b5a0280414f521da01fcc63a27aeeb4b104db # v3.6.1

- name: build and push docker image
run: |
echo "$DOCKER_PASSWORD" | docker login -u "$DOCKER_USERNAME" --password-stdin
make docker_push
make docker_multiarch_push
env:
DOCKER_USERNAME: ${{ secrets.DOCKER_USERNAME }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
DOCKER_PASSWORD: ${{ secrets.DOCKER_PASSWORD }}
69 changes: 69 additions & 0 deletions .github/workflows/scorecard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
name: Scorecard supply-chain security

permissions:
contents: read

on:
# For Branch-Protection check. Only the default branch is supported. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#branch-protection
branch_protection_rule:
# To guarantee Maintained check is occasionally updated. See
# https://github.com/ossf/scorecard/blob/main/docs/checks.md#maintained
schedule:
- cron: "31 17 * * 3"
push:
branches: ["main"]

jobs:
analysis:
name: Scorecard analysis
runs-on: ubuntu-latest
permissions:
# Needed to upload the results to code-scanning dashboard.
security-events: write
# Needed to publish results and get a badge (see publish_results below).
id-token: write
# Uncomment the permissions below if installing in a private repository.
# contents: read
# actions: read

steps:
- name: "Checkout code"
uses: actions/checkout@692973e3d937129bcbf40652eb9f2f61becf3332 # v4.1.7
with:
persist-credentials: false

- name: "Run analysis"
uses: ossf/scorecard-action@62b2cac7ed8198b15735ed49ab1e5cf35480ba46 # v2.4.0
with:
results_file: results.sarif
results_format: sarif
# (Optional) "write" PAT token. Uncomment the `repo_token` line below if:
# - you want to enable the Branch-Protection check on a *public* repository, or
# - you are installing Scorecard on a *private* repository
# To create the PAT, follow the steps in https://github.com/ossf/scorecard-action#authentication-with-pat.
# repo_token: ${{ secrets.SCORECARD_TOKEN }}

# Public repositories:
# - Publish results to OpenSSF REST API for easy access by consumers
# - Allows the repository to include the Scorecard badge.
# - See https://github.com/ossf/scorecard-action#publishing-results.
# For private repositories:
# - `publish_results` will always be set to `false`, regardless
# of the value entered here.
publish_results: true

# Upload the results as artifacts (optional). Commenting out will disable uploads of run results in SARIF
# format to the repository Actions tab.
- name: "Upload artifact"
uses: actions/upload-artifact@834a144ee995460fba8ed112a2fc961b36a5ec5a # v4.3.6
with:
name: SARIF file
path: results.sarif
retention-days: 5

# Upload the results to GitHub's code scanning dashboard.
- name: "Upload to code-scanning"
uses: github/codeql-action/upload-sarif@f09c1c0a94de965c15400f5634aa42fac8fb8f88 # v3.27.5
with:
sarif_file: results.sarif
70 changes: 38 additions & 32 deletions .github/workflows/stale.yml
Original file line number Diff line number Diff line change
@@ -1,42 +1,48 @@
permissions:
contents: read

on:
workflow_dispatch:
schedule:
- cron: '0 */4 * * *'
- cron: "0 */4 * * *"

jobs:
prune_stale:
permissions:
issues: write # for actions/stale to close stale issues
pull-requests: write # for actions/stale to close stale PRs
name: Prune Stale
runs-on: ubuntu-latest

steps:
- name: Prune Stale
uses: actions/[email protected]
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Different amounts of days for issues/PRs are not currently supported but there is a PR
# open for it: https://github.com/actions/stale/issues/214
days-before-stale: 30
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had activity in the
last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity
occurs. Thank you for your contributions.
close-issue-message: >
This issue has been automatically closed because it has not had activity in the
last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot".
Thank you for your contributions.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please
feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
close-pr-message: >
This pull request has been automatically closed because it has not had
activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
stale-issue-label: 'stale'
exempt-issue-labels: 'no stalebot,help wanted'
stale-pr-label: 'stale'
exempt-pr-labels: 'no stalebot'
operations-per-run: 500
ascending: true
- name: Prune Stale
uses: actions/stale@87c2b794b9b47a9bec68ae03c01aeb572ffebdb1 # v3.0.14
with:
repo-token: ${{ secrets.GITHUB_TOKEN }}
# Different amounts of days for issues/PRs are not currently supported but there is a PR
# open for it: https://github.com/actions/stale/issues/214
days-before-stale: 30
days-before-close: 7
stale-issue-message: >
This issue has been automatically marked as stale because it has not had activity in the
last 30 days. It will be closed in the next 7 days unless it is tagged "help wanted" or "no stalebot" or other activity
occurs. Thank you for your contributions.
close-issue-message: >
This issue has been automatically closed because it has not had activity in the
last 37 days. If this issue is still valid, please ping a maintainer and ask them to label it as "help wanted" or "no stalebot".
Thank you for your contributions.
stale-pr-message: >
This pull request has been automatically marked as stale because it has not had
activity in the last 30 days. It will be closed in 7 days if no further activity occurs. Please
feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
close-pr-message: >
This pull request has been automatically closed because it has not had
activity in the last 37 days. Please feel free to give a status update now, ping for review, or re-open when it's ready.
Thank you for your contributions!
stale-issue-label: "stale"
exempt-issue-labels: "no stalebot,help wanted"
stale-pr-label: "stale"
exempt-pr-labels: "no stalebot"
operations-per-run: 500
ascending: true
Loading