codacy / codacy-analysis-cli-action

GitHub Action for the codacy-analysis-cli
https://github.com/codacy/codacy-analysis-cli
Apache License 2.0
58 stars 18 forks source link

[DOCS-380] Running Go client-side tools requires setting up the Go environment #78

Closed prcr closed 2 years ago

prcr commented 2 years ago

Using the client-side Go tools Gosec and staticcheck requires setting up the Go environment beforehand. For example, using the GitHub action setup-go:

jobs:
  codacy-analysis-cli:
    name: start
    runs-on: ubuntu-latest
    steps:
      - name: checkout
        uses: actions/checkout@v3
      - name: set-up go
        uses: actions/setup-go@v3
        with:
          go-version: 1.13.8
      - name: Run Codacy Analysis CLI
        uses: codacy/codacy-analysis-cli-action@master
        with:
          run-staticcheck: "true"
          run-gosec: "true"
          upload: true
          project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}

The documentation should make this explicit and provide a suggestion to use the GitHub action.

See this internal thread on Slack for more context.

github-actions[bot] commented 2 years ago

Internal ticket created : DOCS-380