diff --git a/.github/dependabot.yml b/.github/dependabot.yml index 2c3a92b..a3b996b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +# https://docs.github.com/en/code-security/dependabot/dependabot-version-updates/configuration-options-for-the-dependabot.yml-file version: 2 updates: # Maintain dependencies for GitHub Actions diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 77bb446..de08d6b 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -38,7 +38,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 20113d7..19ad76b 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -16,26 +16,25 @@ name: CI on: push: tags: ["v*"] - branches: [ "main" ] + branches: ["main"] pull_request: - branches: [ "main" ] + branches: ["main"] jobs: # Set the job key. The key is displayed as the job name # when a job name is not provided push-image: name: Push Images - # Set the type of machine to run on runs-on: ubuntu-latest steps: - # Checks out a copy of your repository on the ubuntu-latest machine - name: Checkout code - uses: actions/checkout@v3 + # https://github.com/actions/checkout + uses: actions/checkout@v4 - # https://github.com/actions/setup-go - name: Setup Go - uses: actions/setup-go@v4 + # https://github.com/actions/setup-go + uses: actions/setup-go@v5 with: - go-version: '1.22' + go-version: "1.22" - name: Install Prerequisites run: | @@ -58,7 +57,8 @@ jobs: make coverage.txt - name: Push Code Coverage - uses: codecov/codecov-action@v3 + # https://github.com/codecov/codecov-action + uses: codecov/codecov-action@v4 with: token: ${{ secrets.CODECOV_TOKEN }} # not required for public repos files: ./coverage.txt # optional @@ -73,26 +73,28 @@ jobs: make bin/release.tar.gz make release-binaries - # https://github.com/docker/login-action#github-packages-docker-registry - name: Login to GitHub Container Registry - uses: docker/login-action@v2 + # https://github.com/docker/login-action#github-packages-docker-registry + uses: docker/login-action@v3 with: registry: ghcr.io username: ${{ github.actor }} password: ${{ secrets.GITHUB_TOKEN }} - # https://github.com/docker/login-action#github-packages-docker-registry - name: Login to Docker Hub - uses: docker/login-action@v2 + # https://github.com/docker/login-action#github-packages-docker-registry + uses: docker/login-action@v3 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Set up QEMU - uses: docker/setup-qemu-action@v2 + # https://github.com/docker/setup-qemu-action + uses: docker/setup-qemu-action@v3 - name: Set up Docker Buildx - uses: docker/setup-buildx-action@v2 + # https://github.com/docker/setup-buildx-action + uses: docker/setup-buildx-action@v3 - name: Push Images (Commit) if: ${{ !startsWith(github.ref, 'refs/tags/') }} @@ -114,6 +116,7 @@ jobs: make DOCKER_PUSH=--push REGISTRY=ghcr.io/jeremyje images - name: Create Release + # https://github.com/softprops/action-gh-release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/') with: @@ -152,7 +155,8 @@ jobs: bin/release/server-arm64.exe - name: Publish Application - uses: actions/upload-artifact@v3 + # https://github.com/actions/upload-artifact + uses: actions/upload-artifact@v4 if: startsWith(github.ref, 'refs/tags/') with: name: release.tar.gz diff --git a/.github/workflows/reviewdog.yml b/.github/workflows/reviewdog.yml index ea94952..eaebdfb 100644 --- a/.github/workflows/reviewdog.yml +++ b/.github/workflows/reviewdog.yml @@ -21,8 +21,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code. - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: misspell + # https://github.com/reviewdog/action-misspell uses: reviewdog/action-misspell@v1 with: github_token: ${{ secrets.github_token }} @@ -35,8 +36,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: hadolint + # https://github.com/reviewdog/action-hadolint uses: reviewdog/action-hadolint@v1 with: github_token: ${{ secrets.github_token }} @@ -48,8 +50,9 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out code. - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: codespell + # https://github.com/plettich/action-codespell uses: plettich/action-codespell@master with: github_token: ${{ secrets.github_token }} diff --git a/go.mod b/go.mod index 301fc90..2fd9691 100644 --- a/go.mod +++ b/go.mod @@ -6,7 +6,7 @@ require ( github.com/dustin/go-humanize v1.0.1 github.com/go-git/go-git/v5 v5.11.0 github.com/google/go-cmp v0.6.0 - github.com/jeremyje/gomain v0.7.0 + github.com/jeremyje/gomain v0.8.0 github.com/mholt/archiver/v4 v4.0.0-alpha.8 github.com/prometheus/client_golang v1.18.0 github.com/rs/cors v1.10.1 diff --git a/go.sum b/go.sum index 880379e..32c2ead 100644 --- a/go.sum +++ b/go.sum @@ -129,6 +129,8 @@ github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99 h1:BQSFePA1RWJOl github.com/jbenet/go-context v0.0.0-20150711004518-d14ea06fba99/go.mod h1:1lJo3i6rXxKeerYnT8Nvf0QmHCRC1n8sfWVwXF2Frvo= github.com/jeremyje/gomain v0.7.0 h1:V8g8nmSceTgPwXfZSbNY9lWuDHTQ6RC0ht0611HlDaU= github.com/jeremyje/gomain v0.7.0/go.mod h1:Wbrg6yJdAGO3XpovgvEnSejxchJlezDzbcO6NMWdgM8= +github.com/jeremyje/gomain v0.8.0 h1:mh6zPQVRjuxIUsYqYLsBStqxEmgjnFJaM0lDjbMrYDY= +github.com/jeremyje/gomain v0.8.0/go.mod h1:iZfnVo2Vg0Kz1897QzO8vMinMpJPoeI8DDwsSyTNUdc= github.com/jstemmer/go-junit-report v0.0.0-20190106144839-af01ea7f8024/go.mod h1:6v2b51hI/fHJwM22ozAgKL4VKDeJcHhJFhtBdhmNjmU= github.com/jstemmer/go-junit-report v0.9.1/go.mod h1:Brl9GWCQeLvo8nXZwPNNblvFj/XSXhF0NWZEnDohbsk= github.com/kevinburke/ssh_config v1.2.0 h1:x584FjTGwHzMwvHx18PXxbBVzfnxogHaAReU4gf13a4=