-
Notifications
You must be signed in to change notification settings - Fork 44
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #81 from mpast/main
Update dev branch
- Loading branch information
Showing
15 changed files
with
188 additions
and
147 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 |
---|---|---|
@@ -1,13 +1,11 @@ | ||
# Ignore the logs | ||
app/logs/ | ||
rabbitmq/logs/ | ||
# Ignore rabbitmq and nginx | ||
rabbitmq | ||
nginx | ||
|
||
# Ignore apk directory | ||
app/media/apk | ||
|
||
# Ignoring git folders | ||
.git | ||
|
||
# Ignore certificates | ||
nginx/ssl/nginx.crt | ||
nginx/ssl/nginx.key | ||
.git |
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 |
---|---|---|
@@ -1,41 +1,34 @@ | ||
name: Semgrep | ||
|
||
on: | ||
# Scan changed files in PRs, block on new issues only (existing issues ignored) | ||
pull_request: {} | ||
|
||
# Scan all files on branches, block on any issues | ||
#push: | ||
# branches: ["master", "main"] | ||
pull_request_target: {} | ||
push: | ||
branches: ["main"] | ||
# Schedule the CI job (this method uses cron syntax): | ||
schedule: | ||
- cron: '0 0 1 * *' # Sets Semgrep to scan every month | ||
|
||
jobs: | ||
semgrep: | ||
name: Scan | ||
runs-on: ubuntu-latest | ||
# Skip any PR created by dependabot to avoid permission issues | ||
if: (github.actor != 'dependabot[bot]') | ||
steps: | ||
# Fetch project source | ||
- uses: actions/checkout@v2 | ||
|
||
- uses: returntocorp/semgrep-action@v1 | ||
with: | ||
publishToken: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
# Never fail the build due to findings on pushes. | ||
# Instead, just collect findings for semgrep.dev/manage/findings | ||
auditOn: push | ||
container: | ||
image: returntocorp/semgrep | ||
|
||
# Upload findings to GitHub Advanced Security Dashboard [step 1/2] | ||
# See also the next step. | ||
generateSarif: "1" | ||
|
||
# Change job timeout (default is 1800 seconds; set to 0 to disable) | ||
# env: | ||
# SEMGREP_TIMEOUT: 300 | ||
# Skip any PR created by dependabot to avoid permission issues: | ||
if: (github.actor != 'dependabot[bot]') | ||
|
||
# Upload findings to GitHub Advanced Security Dashboard [step 2/2] | ||
steps: | ||
# Fetch project source with GitHub Actions Checkout. | ||
- uses: actions/checkout@v3 | ||
# Run the "semgrep ci" command on the command line of the docker image. | ||
- run: semgrep ci --sarif --output=semgrep.sarif | ||
env: | ||
SEMGREP_APP_TOKEN: ${{ secrets.SEMGREP_APP_TOKEN }} | ||
# Upload the results to Github Advanced Security | ||
- name: Upload SARIF file for GitHub Advanced Security Dashboard | ||
uses: github/codeql-action/upload-sarif@v1 | ||
uses: github/codeql-action/upload-sarif@v2 | ||
with: | ||
sarif_file: semgrep.sarif | ||
if: always() |
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 |
---|---|---|
@@ -1,7 +1,9 @@ | ||
*.DS_Store | ||
.env | ||
.vscode | ||
app/logs/* | ||
rabbitmq/logs/* | ||
nginx/logs/* | ||
app/media/* | ||
*.sqlite3 | ||
*.sqlite | ||
|
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
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
Oops, something went wrong.