diff --git a/.github/workflows/autofmt.yml b/.github/workflows/autofmt.yml index 8d63f175ca..24a67a47a8 100644 --- a/.github/workflows/autofmt.yml +++ b/.github/workflows/autofmt.yml @@ -14,7 +14,9 @@ jobs: steps: - uses: actions/checkout@v4 with: - ref: ${{ github.ref }} + ref: main + fetch-depth: 0 + token: ${{ secrets.FTL_AUTOFMT_TOKEN }} - name: Init Hermit run: ./bin/hermit env -r >> "$GITHUB_ENV" - name: Auto format @@ -28,4 +30,4 @@ jobs: git config --global user.email "github-actions[bot]@users.noreply.github.com" git config --global user.name "github-actions[bot]" git commit -am "chore(autofmt): Automated formatting" - git push \ No newline at end of file + git push diff --git a/backend/controller/controller.go b/backend/controller/controller.go index 87292e4db9..255e01ae93 100644 --- a/backend/controller/controller.go +++ b/backend/controller/controller.go @@ -1,8 +1,8 @@ package controller import ( - "context" "errors" + "context" "fmt" "io" "math/rand"