GitHub Action
Annotate Commit with Pylint Results
GitHub Action that annotates code with pylint linting results captured using
pylint *.py --output-format=json2:pylint.json
.
You need to add permissions for this tool.
permissions:
contents: read
checks: write
uses: karpikpl/pylint-annotation-action@1.0.0
with:
lint-file: pylint.json
pylint-result-code: 0
head-sha: abcd1234
Required SHA of the commit to annotate.
Optional Linting JSON results file from Pylint. Defaults to pylint.json
Optional Pylint result code to consider as an error. Defaults to 0
.
Optional Another repository owner, If not set, the current repository owner
is used by default. Note that when you trying changing a repository, be aware
that GITHUB_TOKEN
should also have permission for that repository.
Optional Another repository name. Of limited use on GitHub enterprise. If
not set, the current repository is used by default. Note that when you trying
changing a repository, be aware that GITHUB_TOKEN
should also have permission
for that repository.
Optional, You can set
PAT
here. If not set, this will use ${{ github.token }}
.
The result of the action. Success, Failure or information message. Useful for debugging.