From 92f8c37a43c96fe36a6ee94fcd56c21f8bbd6299 Mon Sep 17 00:00:00 2001 From: "sweep-ai[bot]" <128439645+sweep-ai[bot]@users.noreply.github.com> Date: Mon, 1 Jan 2024 20:21:35 +0000 Subject: [PATCH] fix: add github token to lock-threads action --- path_to_workflow_file | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 path_to_workflow_file diff --git a/path_to_workflow_file b/path_to_workflow_file new file mode 100644 index 0000000..cacfe3f --- /dev/null +++ b/path_to_workflow_file @@ -0,0 +1,37 @@ +name: Go Build + +on: + push: + branches: [ main ] + pull_request: + branches: [ main ] + +jobs: + build: + name: Build + runs-on: ubuntu-latest + steps: + - name: Set up Go + uses: actions/setup-go@v4 + with: + go-version: '1.20' + + - name: Check out code into the Go module directory + uses: actions/checkout@v4 + + - name: Get dependencies + run: go mod download + + - name: Build + run: make build + + - name: Lint + run: make lint + + - name: Test + run: make test + + - name: Lock Threads + uses: dessant/lock-threads@v4 + with: + github-token: ${{ secrets.GITHUB_TOKEN }}