-
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: add gitleaks, modularize
detect-duplicate-actions
(#41)
- Loading branch information
1 parent
4f6e429
commit 2ce0a22
Showing
3 changed files
with
48 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
name: detect-duplicate-actions | ||
|
||
on: | ||
workflow_call: | ||
outputs: | ||
should_skip: | ||
description: 'Returns "true" if the current run should be skipped' | ||
value: ${{ jobs.detect-duplicate-actions.outputs.should_skip }} | ||
|
||
jobs: | ||
detect-duplicate-actions: | ||
name: detect-duplicate-actions | ||
runs-on: ubuntu-latest | ||
outputs: | ||
should_skip: ${{ steps.skip_check.outputs.should_skip }} | ||
steps: | ||
- name: Detect Duplicate | ||
id: skip_check | ||
uses: fkirc/skip-duplicate-actions@master | ||
with: | ||
paths_ignore: '["**.md", "**.mdx", "**.png", "**.jpg"]' | ||
do_not_skip: '["workflow_dispatch", "schedule"]' | ||
cancel_others: 'true' | ||
concurrent_skipping: 'same_content' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Code Scan | ||
on: | ||
push: | ||
branches: [dev] | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
detect-duplicate-actions: | ||
uses: ./.github/workflows/detect-duplicate-actions.yml | ||
gitleaks: | ||
name: gitleaks | ||
needs: detect-duplicate-actions | ||
if: ${{ needs.detect-duplicate-actions.outputs.should_skip != 'true' }} | ||
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_NOTIFY_USER_LIST: '@elijaholmos' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters