From 38cfd5eea95d64e60fd26163a930fe915e72bb55 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:42:56 -0400 Subject: [PATCH 1/6] Remove cloudbuild --- cloudbuild/master.yaml | 13 ------------- cloudbuild/pull-request.yaml | 10 ---------- 2 files changed, 23 deletions(-) delete mode 100644 cloudbuild/master.yaml delete mode 100644 cloudbuild/pull-request.yaml diff --git a/cloudbuild/master.yaml b/cloudbuild/master.yaml deleted file mode 100644 index afc177f..0000000 --- a/cloudbuild/master.yaml +++ /dev/null @@ -1,13 +0,0 @@ -steps: - - id: dockerize-garner-ssh-gateway - name: 'gcr.io/cloud-builders/docker' - args: - - build - - '-t' - - gcr.io/$PROJECT_ID/garner-ssh-gateway:$COMMIT_SHA - - '-t' - - gcr.io/$PROJECT_ID/garner-ssh-gateway:latest - - . -images: - - gcr.io/$PROJECT_ID/garner-ssh-gateway:$COMMIT_SHA - - gcr.io/$PROJECT_ID/garner-ssh-gateway:latest diff --git a/cloudbuild/pull-request.yaml b/cloudbuild/pull-request.yaml deleted file mode 100644 index 196dea8..0000000 --- a/cloudbuild/pull-request.yaml +++ /dev/null @@ -1,10 +0,0 @@ -steps: - - id: dockerize-garner-ssh-gateway - name: 'gcr.io/cloud-builders/docker' - args: - - build - - '-t' - - gcr.io/$PROJECT_ID/garner-ssh-gateway:$COMMIT_SHA-rc - - . -images: - - gcr.io/$PROJECT_ID/garner-ssh-gateway:$COMMIT_SHA-rc From 76d20536f03e045d0535cd43e5c7ca0dfb083022 Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:46:35 -0400 Subject: [PATCH 2/6] Upgrade image * Flatten layers * Exclude repository from docker workspace --- .dockerignore | 1 + Dockerfile | 12 ++++++------ 2 files changed, 7 insertions(+), 6 deletions(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..1d085ca --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +** diff --git a/Dockerfile b/Dockerfile index 74673da..dcc0280 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,9 +1,9 @@ -FROM alpine:3.11 +FROM alpine:3.21 RUN apk add --no-cache \ openssh-client \ ca-certificates -RUN mkdir /root/.ssh -RUN chmod 0700 /root/.ssh -RUN ln -s /ssh-id-rsa/id_rsa /root/.ssh -RUN ln -s /ssh-config/config /root/.ssh -RUN ln -s /ssh-known-hosts/known_hosts /root/.ssh +RUN mkdir /root/.ssh &&\ + chmod 0700 /root/.ssh &&\ + ln -s /ssh-id-rsa/id_rsa /root/.ssh &&\ + ln -s /ssh-config/config /root/.ssh &&\ + ln -s /ssh-known-hosts/known_hosts /root/.ssh From 3fe0a6ad69fb2dcd6a7770a6a4f37ec4a94b32ca Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:48:09 -0400 Subject: [PATCH 3/6] Rename chart workflow file --- .github/workflows/{ci.yml => charts.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{ci.yml => charts.yml} (100%) diff --git a/.github/workflows/ci.yml b/.github/workflows/charts.yml similarity index 100% rename from .github/workflows/ci.yml rename to .github/workflows/charts.yml From a1fdf7b7bfcac9cd0471425b8151fdc8aeb0a8cd Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:52:22 -0400 Subject: [PATCH 4/6] Update workflows --- .github/workflows/charts.yml | 8 +++----- .github/workflows/release.yml | 4 ++-- 2 files changed, 5 insertions(+), 7 deletions(-) diff --git a/.github/workflows/charts.yml b/.github/workflows/charts.yml index 0e463fe..2484788 100644 --- a/.github/workflows/charts.yml +++ b/.github/workflows/charts.yml @@ -10,7 +10,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2 + uses: actions/checkout@v4 with: fetch-depth: 0 @@ -19,12 +19,10 @@ jobs: with: version: v3.4.0 - - uses: actions/setup-python@v2 - with: - python-version: 3.7 + - uses: actions/setup-python@v5 - name: Set up chart-testing - uses: helm/chart-testing-action@v2.0.1 + uses: helm/chart-testing-action@v2.7.0 - name: Run chart-testing (list-changed) id: list-changed diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9e4c922..4f6a9ea 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -13,7 +13,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v1 + uses: actions/checkout@v4 - name: Configure Git run: | @@ -33,6 +33,6 @@ jobs: true - name: Run chart-releaser - uses: helm/chart-releaser-action@master + uses: helm/chart-releaser-action@v1.7.0 env: CR_TOKEN: '${{ secrets.GITHUB_TOKEN }}' From 84824b7ab8ffc420eceb3f0033f61fead203848e Mon Sep 17 00:00:00 2001 From: Josh Soref <2119212+jsoref@users.noreply.github.com> Date: Mon, 10 Mar 2025 12:54:07 -0400 Subject: [PATCH 5/6] Refresh check-spelling --- .github/actions/spelling/README.md | 18 + .github/actions/spelling/advice.md | 27 + .github/actions/spelling/allow.txt | 5 + .../actions/spelling/block-delimiters.list | 27 + .github/actions/spelling/candidate.patterns | 770 ++++++++++++++++++ .github/actions/spelling/excludes.txt | 87 +- .github/actions/spelling/expect.txt | 34 +- .../actions/spelling/line_forbidden.patterns | 385 +++++++++ .github/actions/spelling/patterns.txt | 61 ++ .github/actions/spelling/reject.txt | 14 + .github/workflows/spelling.yml | 180 +++- 11 files changed, 1567 insertions(+), 41 deletions(-) create mode 100644 .github/actions/spelling/README.md create mode 100644 .github/actions/spelling/advice.md create mode 100644 .github/actions/spelling/allow.txt create mode 100644 .github/actions/spelling/block-delimiters.list create mode 100644 .github/actions/spelling/candidate.patterns create mode 100644 .github/actions/spelling/line_forbidden.patterns create mode 100644 .github/actions/spelling/patterns.txt create mode 100644 .github/actions/spelling/reject.txt diff --git a/.github/actions/spelling/README.md b/.github/actions/spelling/README.md new file mode 100644 index 0000000..da6f2e9 --- /dev/null +++ b/.github/actions/spelling/README.md @@ -0,0 +1,18 @@ +# check-spelling/check-spelling configuration + +File | Purpose | Format | Info +-|-|-|- +[dictionary.txt](dictionary.txt) | Replacement dictionary (creating this file will override the default dictionary) | one word per line | [dictionary](https://github.com/check-spelling/check-spelling/wiki/Configuration#dictionary) +[allow.txt](allow.txt) | Add words to the dictionary | one word per line (only letters and `'`s allowed) | [allow](https://github.com/check-spelling/check-spelling/wiki/Configuration#allow) +[reject.txt](reject.txt) | Remove words from the dictionary (after allow) | grep pattern matching whole dictionary words | [reject](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-reject) +[excludes.txt](excludes.txt) | Files to ignore entirely | perl regular expression | [excludes](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-excludes) +[only.txt](only.txt) | Only check matching files (applied after excludes) | perl regular expression | [only](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-only) +[patterns.txt](patterns.txt) | Patterns to ignore from checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns) +[candidate.patterns](candidate.patterns) | Patterns that might be worth adding to [patterns.txt](patterns.txt) | perl regular expression with optional comment block introductions (all matches will be suggested) | [candidates](https://github.com/check-spelling/check-spelling/wiki/Feature:-Suggest-patterns) +[line_forbidden.patterns](line_forbidden.patterns) | Patterns to flag in checked lines | perl regular expression (order matters, first match wins) | [patterns](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-patterns) +[expect.txt](expect.txt) | Expected words that aren't in the dictionary | one word per line (sorted, alphabetically) | [expect](https://github.com/check-spelling/check-spelling/wiki/Configuration#expect) +[advice.md](advice.md) | Supplement for GitHub comment when unrecognized words are found | GitHub Markdown | [advice](https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples%3A-advice) +[block-delimiters.list](block-delimiters.list) | Define block begin/end markers to ignore lines of text | line with _literal string_ for **start** followed by line with _literal string_ for **end** | [block ignore](https://github.com/check-spelling/check-spelling/wiki/Feature%3A-Block-Ignore#status) + +Note: you can replace any of these files with a directory by the same name (minus the suffix) +and then include multiple files inside that directory (with that suffix) to merge multiple files together. diff --git a/.github/actions/spelling/advice.md b/.github/actions/spelling/advice.md new file mode 100644 index 0000000..84eb921 --- /dev/null +++ b/.github/actions/spelling/advice.md @@ -0,0 +1,27 @@ + +
If the flagged items are :exploding_head: false positives + +If items relate to a ... +* binary file (or some other file you wouldn't want to check at all). + + Please add a file path to the `excludes.txt` file matching the containing file. + + File paths are Perl 5 Regular Expressions - you can [test]( +https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your files. + + `^` refers to the file's path from the root of the repository, so `^README\.md$` would exclude [README.md]( +../tree/HEAD/README.md) (on whichever branch you're using). + +* well-formed pattern. + + If you can write a [pattern]( +https://github.com/check-spelling/check-spelling/wiki/Configuration-Examples:-patterns +) that would match it, + try adding it to the `patterns.txt` file. + + Patterns are Perl 5 Regular Expressions - you can [test]( +https://www.regexplanet.com/advanced/perl/) yours before committing to verify it will match your lines. + + Note that patterns can't match multiline strings. + +
diff --git a/.github/actions/spelling/allow.txt b/.github/actions/spelling/allow.txt new file mode 100644 index 0000000..6156761 --- /dev/null +++ b/.github/actions/spelling/allow.txt @@ -0,0 +1,5 @@ +github +https +ssh +ubuntu +workarounds diff --git a/.github/actions/spelling/block-delimiters.list b/.github/actions/spelling/block-delimiters.list new file mode 100644 index 0000000..e6f7a1e --- /dev/null +++ b/.github/actions/spelling/block-delimiters.list @@ -0,0 +1,27 @@ +# Public Keys +-----BEGIN PUBLIC KEY----- +-----END PUBLIC KEY----- + +# Private Keys +-----BEGIN PRIVATE KEY----- +-----END PRIVATE KEY----- + +# RSA Private Key +-----BEGIN RSA PRIVATE KEY----- +-----END RSA PRIVATE KEY----- + +# GPG Public Key +-----BEGIN PGP PUBLIC KEY BLOCK----- +-----END PGP PUBLIC KEY BLOCK----- + +# GPG Signature +-----BEGIN PGP SIGNATURE----- +-----END PGP SIGNATURE----- + +# Certificates +-----BEGIN CERTIFICATE----- +-----END CERTIFICATE----- + +# All Contributors +