You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+8-8
Original file line number
Diff line number
Diff line change
@@ -9,9 +9,7 @@ The action runs [golangci-lint](https://github.com/golangci/golangci-lint) and r
9
9
10
10
## How to use
11
11
12
-
1. Create a [GitHub token](https://github.com/settings/tokens/new) with scope `repo.public_repo`.
13
-
2. Add it to a [repository secrets](https://help.github.com/en/actions/configuring-and-managing-workflows/creating-and-storing-encrypted-secrets#creating-encrypted-secrets): repository -> `Settings` -> `Secrets`.
14
-
3. Add `.github/workflows/golangci-lint.yml` with the following contents:
12
+
Add `.github/workflows/golangci-lint.yml` with the following contents:
15
13
16
14
```yaml
17
15
name: golangci-lint
@@ -37,8 +35,11 @@ jobs:
37
35
# Optional: golangci-lint command line arguments.
38
36
# args: ./the-only-dir-to-analyze/...
39
37
40
-
# Required: GitHub token with scope `repo.public_repo`. Used for fetching a list of releases of golangci-lint.
2. Make a symlink for `act` to work properly: `ln -s . golangci-lint-action`
98
-
3. Get a [GitHub token](https://github.com/settings/tokens/new) with the scope `repo.public_repo`. Export it by `export GITHUB_TOKEN=YOUR_TOKEN`.
99
-
4. Prepare deps once: `npm run prepare-deps`
100
-
5. Run `npm run local` after any change to test it
99
+
3. Prepare deps once: `npm run prepare-deps`
100
+
4. Run `npm run local` after any change to test it
0 commit comments