From 9da214a403819ada3a3fa282d829b88e5da8598e Mon Sep 17 00:00:00 2001 From: Al Ganiev Date: Fri, 13 Sep 2024 07:07:30 +0000 Subject: [PATCH] Updated actions --- .github/workflows/changelog.yml | 4 +- .github/workflows/codeql-analysis.yml | 73 --------------------------- .github/workflows/golangci-lint.yml | 6 +-- .github/workflows/staticcheck.yml | 8 +-- 4 files changed, 9 insertions(+), 82 deletions(-) delete mode 100644 .github/workflows/codeql-analysis.yml diff --git a/.github/workflows/changelog.yml b/.github/workflows/changelog.yml index ec38797..a82f725 100644 --- a/.github/workflows/changelog.yml +++ b/.github/workflows/changelog.yml @@ -7,7 +7,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Generate change log - uses: heinrichreimer/github-changelog-generator-action@v2.1.1 + uses: heinrichreimer/github-changelog-generator-action@v2 with: token: ${{ secrets.GITHUB_TOKEN }} headerLabel: "# Changelog" @@ -24,7 +24,7 @@ jobs: - name: "🖨ī¸ Print changelog to console" run: cat CHANGELOG.md - name: "📤 Upload changelog" - uses: actions/upload-artifact@v1.0.0 + uses: actions/upload-artifact@v4 with: name: "Changelog" path: CHANGELOG.md \ No newline at end of file diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml deleted file mode 100644 index 4f7247f..0000000 --- a/.github/workflows/codeql-analysis.yml +++ /dev/null @@ -1,73 +0,0 @@ -# For most projects, this workflow file will not need changing; you simply need -# to commit it to your repository. -# -# You may wish to alter this file to override the set of languages analyzed, -# or to provide custom queries or build logic. -# -# ******** NOTE ******** -# We have attempted to detect the languages in your repository. Please check -# the `language` matrix defined below to confirm you have the correct set of -# supported CodeQL languages. -# -name: "CodeQL" - -on: - push: - branches: - - master - pull_request: - # The branches below must be a subset of the branches above - branches: - - master - schedule: - - cron: "19 7 * * 2" - -jobs: - CodeQL: - name: Analyze - runs-on: ubuntu-latest - permissions: - actions: read - contents: read - security-events: write - - strategy: - fail-fast: false - matrix: - language: ["go"] - # CodeQL supports [ 'cpp', 'csharp', 'go', 'java', 'javascript', 'python' ] - # Learn more: - # https://docs.github.com/en/free-pro-team@latest/github/finding-security-vulnerabilities-and-errors-in-your-code/configuring-code-scanning#changing-the-languages-that-are-analyzed - - steps: - - name: Checkout repository - uses: actions/checkout@v3 - - # Initializes the CodeQL tools for scanning. - - name: Initialize CodeQL - uses: github/codeql-action/init@v2 - with: - languages: ${{ matrix.language }} - # If you wish to specify custom queries, you can do so here or in a config file. - # By default, queries listed here will override any specified in a config file. - # Prefix the list here with "+" to use these queries and those in the config file. - # queries: ./path/to/local/query, your-org/your-repo/queries@main - - # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). - # If this step fails, then you should remove it and run the build manually (see below) - - name: Autobuild - uses: github/codeql-action/autobuild@v2 - - # ℹī¸ Command-line programs to run using the OS shell. - # 📚 https://git.io/JvXDl - - # ✏ī¸ If the Autobuild fails above, remove it and uncomment the following three lines - # and modify them (or add more) to build your code if your project - # uses a compiled language - - #- run: | - # make bootstrap - # make release - - - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 diff --git a/.github/workflows/golangci-lint.yml b/.github/workflows/golangci-lint.yml index 8be57dc..6a030e0 100644 --- a/.github/workflows/golangci-lint.yml +++ b/.github/workflows/golangci-lint.yml @@ -20,16 +20,16 @@ jobs: steps: - name: Setup Go - uses: actions/setup-go@v3 + uses: actions/setup-go@v5 with: go-version: 1.22 - run: go version - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: golangci-lint - uses: golangci/golangci-lint-action@v3 + uses: golangci/golangci-lint-action@v6 with: # Optional: version of golangci-lint to use in form of v1.2 or v1.2.3 or `latest` to use the latest version version: latest diff --git a/.github/workflows/staticcheck.yml b/.github/workflows/staticcheck.yml index 8423ad2..c772ea3 100644 --- a/.github/workflows/staticcheck.yml +++ b/.github/workflows/staticcheck.yml @@ -2,9 +2,9 @@ name: "StaticCheck" on: push: - branches: [ master ] + branches: [ main ] pull_request: - branches: [ master ] + branches: [ main ] jobs: ci: @@ -16,10 +16,10 @@ jobs: go: ["1.22.x"] runs-on: ${{ matrix.os }} steps: - - uses: actions/checkout@v1 + - uses: actions/checkout@v4 with: fetch-depth: 1 - - uses: WillAbides/setup-go-faster@v1.7.0 + - uses: WillAbides/setup-go-faster@v1 with: go-version: ${{ matrix.go }} - run: "go test ./..."