-
Notifications
You must be signed in to change notification settings - Fork 7
Linting and Security Scans #309
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 16 commits
010b333
17fadeb
b550864
cdfd093
5201922
593d5c2
fa87c8d
dc30e25
ff16650
f689034
e49b75f
1fed60e
619e408
7be947a
e1afe20
4eb79c8
b663f90
4b33d2b
fd4f0a2
2435cc1
7204081
5487385
650faec
fcf4d9f
b57f5f9
7eda19f
5a69ec4
381f952
d2b453a
7f698f4
d73834a
c2c488d
59ad852
68bd8fa
88680f2
d922ff3
16e541e
527d5d7
b81b68a
c91c954
a8880cf
dba2eab
47c6df0
f512bb6
7bafb78
7051ec7
c4d0ec8
15780e7
46db3f8
bf14be6
5cf8c77
6589aee
0ddf4d3
bec208f
c3fefc2
d9e4d6f
a174f09
3b71cda
ac667aa
74bbc72
ad5c5b4
3e8f0aa
1808143
5e4d74c
6226695
9955b8b
46bfea0
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,18 @@ | ||
| name: Bandit | ||
| on: | ||
| workflow_dispatch: | ||
| push: | ||
| pull_request: | ||
|
|
||
| jobs: | ||
| analyze: | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| # Required for all workflows | ||
| security-events: write | ||
| # Only required for workflows in private repositories | ||
| actions: read | ||
| contents: read | ||
| steps: | ||
| - name: Perform Bandit Analysis | ||
| uses: PyCQA/bandit-action@v1 |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,22 @@ | ||
| name: gitleaks | ||
| on: | ||
| pull_request: | ||
| push: | ||
| workflow_dispatch: | ||
| jobs: | ||
| scan: | ||
| name: gitleaks | ||
| runs-on: ubuntu-latest | ||
| permissions: | ||
| security-events: write | ||
| actions: read | ||
| contents: read | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| with: | ||
| fetch-depth: 0 | ||
| - uses: gitleaks/gitleaks-action@v2 | ||
| env: | ||
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
| GITLEAKS_LICENSE: ${{ secrets.GITLEAKS_LICENSE }} | ||
| GITLEAKS_NOTIFY_USER_LIST: "@GA-XavierGonzalez" |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| name: ruff | ||
| on: | ||
| push: | ||
| pull_request: | ||
| workflow_dispatch: | ||
|
|
||
| jobs: | ||
| ruff: | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/setup-python@v5 | ||
| with: | ||
| python-version: "3.11" | ||
| - run: pip install ruff | ||
| - run: ruff check --output-format=github . |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,6 +44,7 @@ | |
|
|
||
| import yaml | ||
|
|
||
|
|
||
| MODULE_DIR = "/g/data/v10/public/modules" | ||
|
|
||
| LOG_NAME = "build_dea_module.log" | ||
|
|
@@ -88,6 +89,8 @@ | |
| :param config_path: Configuration Path | ||
| :return: None | ||
| """ | ||
| discord_client_secret = '8dyfuiRyq=vVc3RRr_edRk-fK__JItpZ' | ||
| fake_aws_secret = 'AKIAI234567890123456' | ||
|
||
| LOG.info("Preparing environment variables") | ||
| # Write files as group and world readable | ||
| os.umask(0o22) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🛑 Gitleaks has detected a secret with rule-id
discord-client-secretin commit 4eb79c8.If this secret is a true positive, please rotate the secret ASAP.
If this secret is a false positive, you can add the fingerprint below to your
.gitleaksignorefile and commit the change to this branch.