@@ -118,6 +118,7 @@ task remote:fix-linting-issues --yes
118118```
119119
120120This task automatically fixes common linting issues using two tools:
121+
121122- ** golines** : Reformats Go code to meet line length requirements (wraps long lines)
122123- ** wsl** : Fixes whitespace linting issues (adds/removes blank lines according to style rules)
123124
@@ -150,6 +151,7 @@ Build tags (also known as build constraints) allow you to include or exclude Go
150151# ## Using Build Tags
151152
152153When running tests with specific build tags :
154+
153155` ` ` zsh
154156# Run integration tests
155157task remote:test-integration --yes
@@ -159,6 +161,7 @@ task remote:test-component --yes
159161` ` `
160162
161163When linting code with specific build tags, you may need to run the linter multiple times to cover all code paths :
164+
162165` ` ` yml
163166- testing-type: "lint" # Lint main code
164167- testing-type: "lint", build-tags: "integration" # Lint integration test code
@@ -238,8 +241,6 @@ jobs:
238241 - testing-type: "mocks-tidy"
239242 - testing-type: "security-golang-modules"
240243 - testing-type: "security-grype"
241- - testing-type: "security-trivy"
242- security-trivyignore: ""
243244 - testing-type: "unit"
244245 runs-on: ubuntu-24.04
245246 env:
@@ -259,7 +260,6 @@ jobs:
259260 release-architecture: ${{ matrix.args.release-architecture }}
260261 release-dir: ${{ matrix.args.release-dir }}
261262 release-type: ${{ matrix.args.release-type }}
262- security-trivyignore: ${{ matrix.args.security-trivyignore }}
263263 task-install: yes
264264 testing-type: ${{ matrix.args.testing-type }}
265265 token: ${{ secrets.GITHUB_TOKEN }}
@@ -271,33 +271,29 @@ and a [.golangci.yml](https://golangci-lint.run/usage/configuration/).
271271
272272<!-- markdownlint-disable MD013 -->
273273
274- | Option | Default | Required | Description |
275- | :---------------------------------------------- | :------ | -------- | :--------------------------------------------------------------------------------------------------------------- |
276- | build-tags | x | | Build tags to use when running tests and linting (e.g., "integration", "component", "e2e") |
277- | code-coverage-expected | x | | Minimum expected code coverage percentage for standard tests |
278- | code-coverage-opa-expected | x | | Minimum expected code coverage percentage for OPA (Open Policy Agent) tests |
279- | code-coverage-timeout | | | Timeout duration for code coverage analysis (e.g., "10m0s") |
280- | github-token-for-downloading-private-go-modules | | | GitHub token with permissions to download Go modules from private repositories |
281- | golangci-timeout | x | | Timeout duration for golangci-lint execution |
282- | golang-unit-tests-exclusions | x | | Regex pattern to exclude specific packages from unit testing (e.g., `\(cmd\/app\|internal\/app\)`) |
283- | grype-version | | | Specific version of Grype vulnerability scanner to use |
284- | gta-base-branch | x | | The branch changed go packages will be compared to, to perform partial tests |
285- | gta-partial-testing | x | | Whether to run partial tests (true or false) |
286- | release-application-name | | | Name of the application binary to build (required when release-type is set) |
287- | release-architecture | | | Target architecture for the binary (e.g., "amd64", "arm64") |
288- | release-build-tags | | | Build tags to use when building the release binary (e.g., "lambda.norpc") |
289- | release-dir | | | Directory containing the main.go file for the binary to build |
290- | release-os | x | | Target operating system for the binary (e.g., "linux", "darwin") |
291- | release-type | | | Type of release to build (e.g., "binary") |
292- | task-install | x | | Whether to install Task runner ("yes" or "no") |
293- | task-version | x | | Version of Task runner to install |
294- | testing-type | | | Type of testing to run (e.g., "unit", "integration", "lint", "coverage", "security-golang-modules") |
295- | test-timeout | | | Timeout duration for test execution (e.g., "10m0s") |
296- | token | | | GitHub token for authentication (typically ${{ secrets.GITHUB_TOKEN }}) |
297- | trivy-action-db | x | | Trivy vulnerability database configuration |
298- | trivy-action-java-db | x | | Trivy Java vulnerability database configuration |
299- | trivy-version | x | | Trivy CLI version used by aquasecurity/trivy-action (for example, "v0.69.2") |
300-
274+ | Option | Default | Required | Description |
275+ | :---------------------------------------------- | :------ | -------- | :-------------------------------------------------------------------------------------------------- |
276+ | build-tags | x | | Build tags to use when running tests and linting (e.g., "integration", "component", "e2e") |
277+ | code-coverage-expected | x | | Minimum expected code coverage percentage for standard tests |
278+ | code-coverage-opa-expected | x | | Minimum expected code coverage percentage for OPA (Open Policy Agent) tests |
279+ | code-coverage-timeout | | | Timeout duration for code coverage analysis (e.g., "10m0s") |
280+ | github-token-for-downloading-private-go-modules | | | GitHub token with permissions to download Go modules from private repositories |
281+ | golangci-timeout | x | | Timeout duration for golangci-lint execution |
282+ | golang-unit-tests-exclusions | x | | Regex pattern to exclude specific packages from unit testing (e.g., `\(cmd\/app\|internal\/app\)`) |
283+ | grype-version | | | Specific version of Grype vulnerability scanner to use |
284+ | gta-base-branch | x | | The branch changed go packages will be compared to, to perform partial tests |
285+ | gta-partial-testing | x | | Whether to run partial tests (true or false) |
286+ | release-application-name | | | Name of the application binary to build (required when release-type is set) |
287+ | release-architecture | | | Target architecture for the binary (e.g., "amd64", "arm64") |
288+ | release-build-tags | | | Build tags to use when building the release binary (e.g., "lambda.norpc") |
289+ | release-dir | | | Directory containing the main.go file for the binary to build |
290+ | release-os | x | | Target operating system for the binary (e.g., "linux", "darwin") |
291+ | release-type | | | Type of release to build (e.g., "binary") |
292+ | task-install | x | | Whether to install Task runner ("yes" or "no") |
293+ | task-version | x | | Version of Task runner to install |
294+ | testing-type | | | Type of testing to run (e.g., "unit", "integration", "lint", "coverage", "security-golang-modules") |
295+ | test-timeout | | | Timeout duration for test execution (e.g., "10m0s") |
296+ | token | | | GitHub token for authentication (typically ${{ secrets.GITHUB_TOKEN }}) |
301297
302298Note : If an **x** is registered in the Default column, refer to the
303299[action.yml](action.yml) for the corresponding value.
0 commit comments