diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..6cc0071 --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,8 @@ +version: 2 +updates: + - package-ecosystem: "github-actions" + directory: "/" + schedule: + interval: "weekly" + cooldown: + default-days: 7 diff --git a/.github/workflows/build-binaries.yml b/.github/workflows/build-binaries.yml index 09578ca..e6a27b1 100644 --- a/.github/workflows/build-binaries.yml +++ b/.github/workflows/build-binaries.yml @@ -14,11 +14,11 @@ jobs: CGO_ENABLED: 1 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: # `fetch-depth: 0` gets us all tags. fetch-depth: 0 @@ -37,7 +37,7 @@ jobs: # We cd so that the binary ends up in the top level of the tar. cd build/macos && tar -czvf smimesign-macos-${{ env.GIT_VERSION }}.tgz smimesign - name: Upload build folder to the action - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: # Note: this artifact is shared across jobs: # https://github.com/actions/upload-artifact#uploading-to-the-same-artifact @@ -60,11 +60,11 @@ jobs: CGO_ENABLED: 1 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 with: # `fetch-depth: 0` gets us all tags. fetch-depth: 0 @@ -122,7 +122,7 @@ jobs: mv build/amd64/smimesign.zip build/amd64/smimesign-windows-amd64-${{ env.GIT_VERSION }}.zip mv build/386/smimesign.zip build/386/smimesign-windows-386-${{ env.GIT_VERSION }}.zip - name: Upload build folder to the action - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 with: # Note: this artifact is shared across jobs: # https://github.com/actions/upload-artifact#uploading-to-the-same-artifact diff --git a/.github/workflows/test-go.yml b/.github/workflows/test-go.yml index 2bd4a59..dadfa79 100644 --- a/.github/workflows/test-go.yml +++ b/.github/workflows/test-go.yml @@ -13,11 +13,11 @@ jobs: CGO_ENABLED: 1 steps: - name: Install Go - uses: actions/setup-go@v2 + uses: actions/setup-go@bfdd3570ce990073878bf10f6b2d79082de49492 # v2.2.0 with: go-version: ${{ matrix.go-version }} - name: Checkout code - uses: actions/checkout@v2 + uses: actions/checkout@0717577d45739eb3c851188b29f50ed6c0b2194e # v2.8.0 - name: Test run: | go test -v ./...