Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
44 changes: 22 additions & 22 deletions .github/workflows/sast.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ on:
branches: ['main']
workflow_dispatch:
## Start: Version 3
#pull_request:
# types: [opened, reopened, synchronize]
pull_request:
types: [opened, reopened, synchronize]
## End: Version 3

jobs:
Expand Down Expand Up @@ -38,24 +38,24 @@ jobs:


## Start: Version 2
#- name: Install dependencies
# shell: bash
# run: |
# pip install bandit-sarif-formatter bandit

#- name: Bandit
# shell: bash
# run: |
# bandit -f sarif -o results.sarif -r --exit-zero .
- name: Install dependencies
shell: bash
run: |
pip install bandit-sarif-formatter bandit

- name: Bandit
shell: bash
run: |
bandit -f sarif -o results.sarif -r --exit-zero .

#- name: Upload artifact
# uses: actions/upload-artifact@main
# with:
# name: results.sarif
# path: results.sarif

#- name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: results.sarif
## End: Version 2
- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: results.sarif
path: results.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
## End: Version 2
38 changes: 19 additions & 19 deletions .github/workflows/secrets.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: ['main']
workflow_dispatch:
## Start: Version 3
#pull_request:
# types: [opened, reopened, synchronize]
pull_request:
types: [opened, reopened, synchronize]
## End: Version 3

jobs:
Expand All @@ -30,21 +30,21 @@ jobs:


## Start: Version 2
#- name: GitLeaks
# continue-on-error: true
# uses: gitleaks/gitleaks-action@v2
# env:
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false

#- name: Upload artifact
# uses: actions/upload-artifact@main
# with:
# name: results.sarif
# path: results.sarif

#- name: Upload SARIF file
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: results.sarif
- name: GitLeaks
continue-on-error: true
uses: gitleaks/gitleaks-action@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITLEAKS_ENABLE_UPLOAD_ARTIFACT: false

- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: results.sarif
path: results.sarif

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: results.sarif
## End: Version 2
42 changes: 21 additions & 21 deletions .github/workflows/trivy_scanning.yml
Original file line number Diff line number Diff line change
Expand Up @@ -45,24 +45,24 @@ jobs:


## Start: Version 2
#- name: Trivy
# uses: aquasecurity/trivy-action@master
# with:
# image-ref: ${{ steps.meta.outputs.tags }}
# format: 'sarif'
# output: 'trivy-results.sarif'
# env:
# TRIVY_USERNAME: ${{ github.actor }}
# TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}
#
#- name: Upload artifact
# uses: actions/upload-artifact@main
# with:
# name: 'trivy-results.sarif'
# path: 'trivy-results.sarif'
#
#- name: Upload Trivy scan results to GitHub Security tab
# uses: github/codeql-action/upload-sarif@v2
# with:
# sarif_file: 'trivy-results.sarif'
## End: Version 2
- name: Trivy
uses: aquasecurity/trivy-action@master
with:
image-ref: ${{ steps.meta.outputs.tags }}
format: 'sarif'
output: 'trivy-results.sarif'
env:
TRIVY_USERNAME: ${{ github.actor }}
TRIVY_PASSWORD: ${{ secrets.GITHUB_TOKEN }}

- name: Upload artifact
uses: actions/upload-artifact@main
with:
name: 'trivy-results.sarif'
path: 'trivy-results.sarif'

- name: Upload Trivy scan results to GitHub Security tab
uses: github/codeql-action/upload-sarif@v2
with:
sarif_file: 'trivy-results.sarif'
## End: Version 2
3 changes: 2 additions & 1 deletion main.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@


def never_called(bla):
aws_access_token = "AKIALALEMEL33243OLIB"
#aws_access_token = "AKIALALEMEL33243OLIB"
aws_access_token =
os.subprocess.Popen('echo ${}'.format(aws_access_token), shell=True)


Expand Down