Skip to content

Commit

Permalink
feat(gitleaks): Setup as standalone check
Browse files Browse the repository at this point in the history
GitLeaks should be a standalone check as the one in the larger linter
does not seem to work correctly with config files

Signed-off-by: Jason Field <jason@avon-lea.co.uk>
  • Loading branch information
xorima committed Oct 18, 2023
1 parent 67e8ca4 commit 1da8893
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/linters/.markdown-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,6 @@ MD004:
# Ordered list item prefix
MD029:
style: one

MD013:
line_length: 120
19 changes: 19 additions & 0 deletions .github/workflows/gitleaks.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: gitleaks
on:
pull_request:
push:
branches:
- main
jobs:
scan:
name: gitleaks
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE}} # Only required for Organizations, not personal accounts.
GITLEAKS_CONFIG: "gitleaks.toml"
2 changes: 2 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ name: Lint Code Base

on:
pull_request:
push:
branches:
- main

Expand Down Expand Up @@ -39,4 +40,5 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TYPESCRIPT_DEFAULT_STYLE: prettier
VALIDATE_JSCPD: false
VALIDATE_GITLEAKS: false
VALIDATE_NATURAL_LANGUAGE: false
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# App-Token Github Action

This action allows you to get the `GITHUB_TOKEN` for a given app installation to save you from using bot accounts.
This action allows you to get the `GITHUB_TOKEN` for a given app installation to save you from using bot accounts.

## Features

Expand Down Expand Up @@ -73,6 +73,7 @@ This section is intended for developers who want to contribute to the app-token


### Clone the repository

```bash
git clone https://github.com/ActionsHub/app-token.git
cd app-token
Expand All @@ -86,4 +87,4 @@ npm install

## License

MIT License
MIT License
File renamed without changes.

0 comments on commit 1da8893

Please sign in to comment.