Skip to content

Commit f601c15

Browse files
committed
Merge branch 'main' into oreilly-main
2 parents 8df4445 + 4d23d48 commit f601c15

File tree

68 files changed

+2252
-569
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

68 files changed

+2252
-569
lines changed

.github/renovate.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"extends": [
3-
"config:recommended"
3+
"config:recommended",
4+
"config:best-practices"
45
],
56
"packageRules": [
67
{

.github/workflows/aws-sdk-mocks.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,16 @@ jobs:
1515
runs-on: ubuntu-latest
1616
if: github.actor == 'renovate[bot]'
1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
1919
with:
2020
persist-credentials: false
2121
fetch-depth: 0
22-
- uses: actions/setup-go@v5
22+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
2323
with:
2424
go-version: '1.21.x'
2525
- name: generate-token
2626
id: generate_token
27-
uses: tibdex/github-app-token@v2
27+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
2828
with:
2929
app_id: ${{ secrets.BOT_APP_ID }}
3030
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}

.github/workflows/commit-lint.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,5 +16,5 @@ jobs:
1616
name: commit-lint
1717
runs-on: ubuntu-latest
1818
steps:
19-
- uses: actions/checkout@v4
20-
- uses: wagoid/commitlint-github-action@v6
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
20+
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # v6

.github/workflows/docs.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,18 @@ jobs:
2727
name: github-pages
2828
url: ${{ steps.deployment.outputs.page_url }}
2929
steps:
30-
- uses: actions/checkout@v4
30+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3131
- name: setup pages
32-
uses: actions/configure-pages@v5
32+
uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5
3333
- name: setup python
34-
uses: actions/setup-python@v5
34+
uses: actions/setup-python@42375524e23c412d93fb67b49958b491fce71c38 # v5
3535
with:
3636
python-version: 3.x
3737
- name: setup cache
3838
run: |
3939
echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV
4040
- name: handle cache
41-
uses: actions/cache@v4
41+
uses: actions/cache@0c907a75c2c80ebcb7f088228285e798b750cf8f # v4
4242
with:
4343
key: mkdocs-material-${{ env.cache_id }}
4444
path: .cache
@@ -51,10 +51,10 @@ jobs:
5151
run: |
5252
mkdocs build
5353
- name: upload artifact
54-
uses: actions/upload-pages-artifact@v3
54+
uses: actions/upload-pages-artifact@56afc609e74202658d3ffba0e8f6dda462b719fa # v3
5555
with:
5656
# Upload entire repository
5757
path: public/
5858
- name: deploy to GitHub Pages
5959
id: deployment
60-
uses: actions/deploy-pages@v4
60+
uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4

.github/workflows/golangci-lint.yml

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@ jobs:
1212
name: golangci-lint
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
16-
- uses: actions/setup-go@v5
15+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
16+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
1717
with:
1818
go-version: '1.21.x'
1919
cache: false
2020
- name: golangci-lint
21-
uses: golangci/golangci-lint-action@v6
22-
with:
23-
args: --timeout=10m
21+
uses: golangci/golangci-lint-action@2226d7cb06a077cd73e56eedd38eecad18e5d837 # v6

.github/workflows/goreleaser.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -21,33 +21,33 @@ jobs:
2121
release:
2222
runs-on: ubuntu-latest
2323
steps:
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2525
if: github.event_name == 'pull_request'
2626
with:
2727
fetch-depth: 0
2828
ref: ${{ github.event.pull_request.head.ref }}
29-
- uses: actions/checkout@v4
29+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
3030
if: github.event_name != 'pull_request'
3131
with:
3232
fetch-depth: 0
3333
- name: setup-go
34-
uses: actions/setup-go@v5
34+
uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
3535
with:
3636
go-version: 1.21.x
3737
- name: setup qemu
3838
id: qemu
39-
uses: docker/setup-qemu-action@v3
39+
uses: docker/setup-qemu-action@29109295f81e9208d7d86ff1c6c12d2833863392 # v3
4040
- name: setup docker buildx
4141
id: buildx
42-
uses: docker/setup-buildx-action@v3
42+
uses: docker/setup-buildx-action@b5ca514318bd6ebac0fb2aedd5d36ec1b5c232a2 # v3
4343
- name: Login to GitHub Container Registry
44-
uses: docker/login-action@v3
44+
uses: docker/login-action@9780b0c442fbb1117ed29e0efdff1e18412f7567 # v3
4545
with:
4646
registry: ghcr.io
4747
username: ${{ github.actor }}
4848
password: ${{ secrets.GITHUB_TOKEN }}
4949
- name: install cosign
50-
uses: sigstore/cosign-installer@v3
50+
uses: sigstore/cosign-installer@d7d6bc7722e3daa8354c50bcb52f4837da5e9b6a # v3
5151
- name: install quill
5252
env:
5353
QUILL_VERSION: 0.4.1
@@ -69,8 +69,8 @@ jobs:
6969
run: |
7070
echo "GORELEASER_ARGS=--snapshot --skip-publish" >> $GITHUB_ENV
7171
- name: setup quill
72-
uses: 1password/load-secrets-action@v2
73-
if: startsWith(github.ref, 'refs/tags/') == true && github.actor == github.repository_owner
72+
uses: 1password/load-secrets-action@581a835fb51b8e7ec56b71cf2ffddd7e68bb25e0 # v2
73+
if: startsWith(github.ref, 'refs/tags/') == true && (github.actor == github.repository_owner || github.actor == 'ekristen-dev[bot]')
7474
with:
7575
export-env: true
7676
env:
@@ -81,7 +81,7 @@ jobs:
8181
QUILL_SIGN_PASSWORD: ${{ secrets.OP_QUILL_SIGN_PASSWORD }}
8282
QUILL_SIGN_P12: ${{ secrets.OP_QUILL_SIGN_P12 }}
8383
- name: run goreleaser
84-
uses: goreleaser/goreleaser-action@v6
84+
uses: goreleaser/goreleaser-action@90a3faa9d0182683851fbfa97ca1a2cb983bfca3 # v6
8585
with:
8686
distribution: goreleaser
8787
version: latest
@@ -94,7 +94,7 @@ jobs:
9494
docker images --format "{{.Repository}}:{{.Tag}}" | grep "${{ github.repository }}" | xargs -L1 docker push
9595
- name: upload artifacts
9696
if: ${{ github.event.pull_request.base.ref == 'main' || github.event_name == 'workflow_dispatch' }}
97-
uses: actions/upload-artifact@v4
97+
uses: actions/upload-artifact@4cec3d8aa04e39d1a68397de0c4cd6fb9dce8ec1 # v4
9898
with:
9999
name: binaries
100100
path: releases/*.tar.gz

.github/workflows/semantic-lint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ jobs:
1515
semantic-lint:
1616
runs-on: ubuntu-latest
1717
steps:
18-
- uses: amannn/action-semantic-pull-request@v5
18+
- uses: amannn/action-semantic-pull-request@0723387faaf9b38adef4775cd42cfd5155ed6017 # v5
1919
env:
2020
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/semantic.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,16 +19,23 @@ jobs:
1919
id-token: write # to enable use of OIDC for npm provenance
2020
steps:
2121
- name: checkout
22-
uses: actions/checkout@v4
22+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
2323
with:
2424
fetch-depth: 0
2525
- name: setup node.js
26-
uses: actions/setup-node@v4
26+
uses: actions/setup-node@1d0ff469b7ec7b3cb9d8673fde0c81c44821de2a # v4
2727
with:
2828
node-version: "lts/*"
29+
- name: generate-token
30+
id: generate_token
31+
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a # v2
32+
with:
33+
app_id: ${{ secrets.BOT_APP_ID }}
34+
private_key: ${{ secrets.BOT_APP_PRIVATE_KEY }}
35+
revoke: true
2936
- name: release
3037
env:
31-
GITHUB_TOKEN: ${{ secrets.SEMANTIC_GITHUB_TOKEN }}
38+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
3239
run: |
3340
npx \
3441
-p @semantic-release/commit-analyzer \

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ jobs:
1313
name: test
1414
runs-on: ubuntu-latest
1515
steps:
16-
- uses: actions/checkout@v4
17-
- uses: actions/setup-go@v5
16+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
17+
- uses: actions/setup-go@f111f3307d8850f501ac008e886eec1fd1932a34 # v5
1818
with:
1919
go-version: '1.21.x'
2020
- name: download go mods

.golangci.yaml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
run:
2+
timeout: 10m
3+
14
linters-settings:
25
dupl:
36
threshold: 100
@@ -21,12 +24,8 @@ linters-settings:
2124
- whyNoLint
2225
gocyclo:
2326
min-complexity: 15
24-
golint:
25-
min-confidence: 0
2627
lll:
2728
line-length: 140
28-
maligned:
29-
suggest-new: true
3029
misspell:
3130
locale: US
3231

@@ -38,7 +37,6 @@ linters:
3837
- bodyclose
3938
- dogsled
4039
- errcheck
41-
- exportloopref
4240
- funlen
4341
- goconst
4442
- gocritic
@@ -69,6 +67,3 @@ issues:
6967
- path: _test\.go
7068
linters:
7169
- funlen
72-
73-
run:
74-
timeout: 2m

0 commit comments

Comments
 (0)