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
that automatically greates a unique `GITHUB_TOKEN` secret for the workflow.
538
+
GitHub Actions imposes the following limitations on workflows:
539
+
540
+
- To avoid accidentally creating recursive workflow runs, the commit that
541
+
contains linting and formatting fixes
542
+
[doesn't create new workflow runs](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#using-the-github_token-in-a-workflow).
543
+
- It restrict edits to GitHub Actions workflows files (in `.github/workflows`).
544
+
- It may fail pushing commits to protected branches.
545
+
546
+
To work around these limitations, you do the following:
547
+
548
+
1. [Create an authentication token with additional permissions](https://docs.github.com/en/actions/security-for-github-actions/security-guides/automatic-token-authentication#granting-additional-permissions).
549
+
1. Grant the authentication token the
550
+
[`repo` and `workflow` permissions](https://docs.github.com/en/rest/authentication/permissions-required-for-fine-grained-personal-access-tokens).
551
+
1. Use the authentication token in the `actions/checkout` step:
552
+
553
+
```yaml
554
+
- uses: actions/checkout@v4
555
+
with:
556
+
fetch-depth: 0
557
+
token: ${{ secrets.SUPER_LINTER_TOKEN }}
558
+
```
559
+
560
+
This example assumes that you saved the authentication token in a secret
561
+
called `SUPER_LINTER_TOKEN`, but you can choose whatever name you prefer for
562
+
the secret.
563
+
466
564
## Configure linters
467
565
468
566
Super-linter provides default configurations for some linters in the [`TEMPLATES/`](./TEMPLATES/)
@@ -610,6 +708,21 @@ previous paragraph, but only supports emitting results to standard output or
610
708
standard error streams, you can
611
709
[enable Super-linter outputs](#super-linter-outputs) and parse them.
612
710
711
+
### Ignore output that Super-linter generates
712
+
713
+
Super-linter generates output reports and logs. To avoid that these outputs end
714
+
up in your repository, we recommend that you add the following lines to your
715
+
`.gitignore` file:
716
+
717
+
```text
718
+
# Super-linter outputs
719
+
super-linter-output
720
+
super-linter.log
721
+
722
+
# GitHub Actions leftovers
723
+
github_conf
724
+
```
725
+
613
726
## How to contribute
614
727
615
728
If you would like to help contribute to super-linter, see
0 commit comments