diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 9a3f0d2..5216c78 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -27,7 +27,7 @@ jobs: name: Set up Go uses: actions/setup-go@v4 with: - go-version: '>=1.20' + go-version: '>=1.21' - name: Checkout the repository uses: actions/checkout@v4 @@ -42,4 +42,4 @@ jobs: - name: Go build run: go build -v . - working-directory: ./cmd/xurlfind3r \ No newline at end of file + working-directory: ./cmd/xsubfind3r \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml new file mode 100644 index 0000000..a978f59 --- /dev/null +++ b/.github/workflows/codeql-analysis.yml @@ -0,0 +1,46 @@ +name: 🚨 CodeQL Analysis + +on: + push: + branches: + - "main" + paths: + - '**.go' + - '**.mod' + pull_request: + branches: + - "main" + paths: + - '**.go' + - '**.mod' + workflow_dispatch: + +jobs: + analyze: + name: CodeQL Analysis + runs-on: ubuntu-latest + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'go' ] + + steps: + - + name: Checkout repository + uses: actions/checkout@v4 + - + name: Initialize CodeQL + uses: github/codeql-action/init@v2 + with: + languages: ${{ matrix.language }} + - + name: Autobuild + uses: github/codeql-action/autobuild@v2 + - + name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 \ No newline at end of file diff --git a/.github/workflows/lint-test.yml b/.github/workflows/lint-test.yml index 34f9043..88f9cdc 100644 --- a/.github/workflows/lint-test.yml +++ b/.github/workflows/lint-test.yml @@ -14,21 +14,21 @@ on: - '**.go' - '**.mod' workflow_dispatch: - + +permissions: + contents: read + jobs: lint: name: Lint Test runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write steps: - name: Set up Go uses: actions/setup-go@v4 with: - go-version: '>=1.20' + go-version: '>=1.21' + cache: false - name: Checkout the repository uses: actions/checkout@v4 @@ -38,6 +38,6 @@ jobs: name: Run golangci-lint uses: golangci/golangci-lint-action@v3 with: - version: v1.52.2 + version: v1.54.2 args: --timeout 5m - working-directory: . + working-directory: . \ No newline at end of file diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index c4add6b..2334759 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -1,11 +1,11 @@ name: 🎉 Release on: - create: - branches: - - main + push: tags: - - v*.*.* + - 'v*.*.*' + - '*.*.*' + workflow_dispatch: jobs: release: @@ -16,7 +16,7 @@ jobs: name: Set up Go uses: actions/setup-go@v4 with: - go-version: '>=1.20' + go-version: '>=1.21' - name: Checkout the repository uses: actions/checkout@v4 @@ -33,4 +33,4 @@ jobs: env: GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}" DISCORD_WEBHOOK_ID: "${{ secrets.DISCORD_WEBHOOK_ID }}" - DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}" + DISCORD_WEBHOOK_TOKEN: "${{ secrets.DISCORD_WEBHOOK_TOKEN }}" \ No newline at end of file