update README
This commit is contained in:
parent
201bc7d913
commit
7c9d694253
89
README.md
89
README.md
@ -1,77 +1,26 @@
|
|||||||

|
## Brakeman github action
|
||||||

|
|
||||||

|
|
||||||
[](#contributors)
|
|
||||||
|
|
||||||
# Rubocop Linter Action
|
### Usage
|
||||||
|
|
||||||
GitHub Action to run Rubocop against your code and create annotations in the UI.
|
```yml
|
||||||
|
- name: Brakeman
|
||||||
**NOTE: due to the GitHub Check Runs API, we can only return 50 annotations per run. See [here](https://developer.github.com/v3/checks/runs/#output-object) for more info.**
|
uses: devmasx/brakeman-lint-action@v1.0.0
|
||||||
|
|
||||||
## Usage
|
|
||||||
|
|
||||||
Add the following to your GitHub action workflow:
|
|
||||||
|
|
||||||
```yaml
|
|
||||||
- name: Rubocop Linter
|
|
||||||
uses: andrewmcodes/rubocop-linter-action@v1.0.0
|
|
||||||
env:
|
env:
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
```
|
```
|
||||||
|
|
||||||
## Example Workflow
|
### Custom report
|
||||||
|
|
||||||
```yaml
|
```yml
|
||||||
name: Rubocop
|
- name: Install gems
|
||||||
|
run: |
|
||||||
on: [push]
|
gem install brakeman -v 4.5.0
|
||||||
|
- name: brakeman report
|
||||||
jobs:
|
run: |
|
||||||
build:
|
brakeman -f json > tmp/brakeman.json || exit 0
|
||||||
runs-on: ubuntu-latest
|
- name: Brakeman
|
||||||
steps:
|
uses: devmasx/brakeman-lint-action@v1.0.0
|
||||||
- uses: actions/checkout@v1
|
env:
|
||||||
- name: Rubocop Linter
|
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
|
||||||
uses: andrewmcodes/rubocop-linter-action@v1.0.0
|
REPORT_PATH: tmp/brakeman.json
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Screenshots
|
|
||||||
|
|
||||||

|
|
||||||
|
|
||||||
## Contributing
|
|
||||||
|
|
||||||
[Contributing Guide](/CONTRIBUTING.md)
|
|
||||||
|
|
||||||
## Code of Conduct
|
|
||||||
|
|
||||||
[Code of Conduct](/CODE_OF_CONDUCT.md)
|
|
||||||
|
|
||||||
## License
|
|
||||||
|
|
||||||
[MIT](/LICENSE.md)
|
|
||||||
|
|
||||||
## Recognition
|
|
||||||
|
|
||||||
This project was originally forked from [gimenete/rubocop-action](https://github.com/gimenete/rubocop-action). Many thanks to [Alberto Gimeno](https://github.com/gimenete) for creating this project.
|
|
||||||
|
|
||||||
## Contributors ✨
|
|
||||||
|
|
||||||
Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/docs/en/emoji-key)):
|
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:START - Do not remove or modify this section -->
|
|
||||||
<!-- prettier-ignore -->
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<td align="center"><a href="https://www.andrewmason.me/"><img src="https://avatars1.githubusercontent.com/u/18423853?v=4" width="100px;" alt="Andrew Mason"/><br /><sub><b>Andrew Mason</b></sub></a><br /><a href="#infra-andrewmcodes" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="#review-andrewmcodes" title="Reviewed Pull Requests">👀</a> <a href="https://github.com/andrewmcodes/rubocop-linter-action/commits?author=andrewmcodes" title="Documentation">📖</a> <a href="https://github.com/andrewmcodes/rubocop-linter-action/commits?author=andrewmcodes" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/MiguelSavignano"><img src="https://avatars3.githubusercontent.com/u/6641863?v=4" width="100px;" alt="Miguel Savignano"/><br /><sub><b>Miguel Savignano</b></sub></a><br /><a href="#infra-MiguelSavignano" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a> <a href="https://github.com/andrewmcodes/rubocop-linter-action/commits?author=MiguelSavignano" title="Tests">⚠️</a> <a href="https://github.com/andrewmcodes/rubocop-linter-action/commits?author=MiguelSavignano" title="Code">💻</a></td>
|
|
||||||
<td align="center"><a href="https://github.com/mcgregordan"><img src="https://avatars0.githubusercontent.com/u/17787076?v=4" width="100px;" alt="Dan McGregor"/><br /><sub><b>Dan McGregor</b></sub></a><br /><a href="https://github.com/andrewmcodes/rubocop-linter-action/commits?author=mcgregordan" title="Documentation">📖</a></td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
<!-- ALL-CONTRIBUTORS-LIST:END -->
|
|
||||||
|
|
||||||
This project follows the [all-contributors](https://github.com/all-contributors/all-contributors) specification. Contributions of any kind welcome!
|
|
||||||
|
|||||||
Reference in New Issue
Block a user