diff --git a/.github/workflows/security-and-quality-check.yml b/.github/workflows/security-and-quality-check.yml index 61948a6..840e69d 100644 --- a/.github/workflows/security-and-quality-check.yml +++ b/.github/workflows/security-and-quality-check.yml @@ -58,12 +58,11 @@ jobs: done - name: Run Gitleaks - uses: gitleaks/gitleaks-action@v2 # Use Gitleaks to scan for sensitive information + run: | # Use Gitleaks CLI directly for scanning sensitive data + echo "Running Gitleaks..." + gitleaks detect --source . --config-path .github/gitleaks.toml --verbose env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Set the GitHub token from secrets - with: - config-path: .github/gitleaks.toml # Specify the path to the Gitleaks config file - verbose: true # Enable verbose output for more details - name: Upload Security Results if: always() # Always run this step, regardless of previous failures diff --git a/backend/tests/manuallyTests/APITestK6LongTest.js b/backend/tests/manuallyTests/APITestK6LongTest.js index f350795..0900c77 100644 --- a/backend/tests/manuallyTests/APITestK6LongTest.js +++ b/backend/tests/manuallyTests/APITestK6LongTest.js @@ -19,7 +19,7 @@ export default function () { const url = 'http://localhost:8081/accounts'; // Endpoint to test const params = { headers: { - 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2YjkzMmVmNDVkNTExYWEzN2MwMjg4OSIsImVtYWlsIjoiYWRtaW5AZ21haWwuY29tIiwiaXNBZG1pbiI6dHJ1ZSwiaWF0IjoxNzMzMDU1ODcyLCJleHAiOjE3MzMwNTk0NzJ9.urZ7BNWEg0zTNAa2EGALcdgSQjfjdovitzciBciUbGI' // Bearer token for authorization + 'Authorization': 'Bearer ...' // Bearer token for authorization }, }; diff --git a/backend/tests/manuallyTests/APITestK6test.js b/backend/tests/manuallyTests/APITestK6test.js index 61dbb8f..dc7404a 100644 --- a/backend/tests/manuallyTests/APITestK6test.js +++ b/backend/tests/manuallyTests/APITestK6test.js @@ -19,7 +19,7 @@ export default function () { const url = 'http://localhost:8081/accounts'; // Endpoint to test const params = { headers: { - 'Authorization': 'Bearer eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjY2YjkzMmVmNDVkNTExYWEzN2MwMjg4OSIsImVtYWlsIjoiYWRtaW5AZ21haWwuY29tIiwiaXNBZG1pbiI6dHJ1ZSwiaWF0IjoxNzMzMDU1ODcyLCJleHAiOjE3MzMwNTk0NzJ9.urZ7BNWEg0zTNAa2EGALcdgSQjfjdovitzciBciUbGI' // Bearer token for authorization + 'Authorization': 'Bearer ...' // Bearer token for authorization }, };