diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 390f91c..78475df 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -13,10 +13,10 @@ name: "CodeQL" on: push: - branches: [ "main" ] + branches: [ "codeql-setup" ] pull_request: # The branches below must be a subset of the branches above - branches: [ "main" ] + branches: [ "codeql-setup" ] schedule: - cron: '43 7 * * 5' @@ -64,7 +64,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, Go, Java, or Swift). # If this step fails, then you should remove it and run the build manually (see below) - name: Build with Maven - run: mvn clean install + run: mvn clean install -DskipTests # â„šī¸ Command-line programs to run using the OS shell. # 📚 See https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#jobsjob_idstepsrun diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml new file mode 100644 index 0000000..577a347 --- /dev/null +++ b/.github/workflows/dependency-review.yml @@ -0,0 +1,20 @@ +# Dependency Review Action +# +# This Action will scan dependency manifest files that change as part of a Pull Request, surfacing known-vulnerable versions of the packages declared or updated in the PR. Once installed, if the workflow run is marked as required, PRs introducing known-vulnerable packages will be blocked from merging. +# +# Source repository: https://github.com/actions/dependency-review-action +# Public documentation: https://docs.github.com/en/code-security/supply-chain-security/understanding-your-software-supply-chain/about-dependency-review#dependency-review-enforcement +name: 'Dependency Review' +on: [pull_request] + +permissions: + contents: read + +jobs: + dependency-review: + runs-on: ubuntu-latest + steps: + - name: 'Checkout Repository' + uses: actions/checkout@v3 + - name: 'Dependency Review' + uses: actions/dependency-review-action@v2 \ No newline at end of file diff --git a/.gitignore b/.gitignore index 3290ff5..abad717 100644 --- a/.gitignore +++ b/.gitignore @@ -40,4 +40,4 @@ build/ *.log ### Credentials ### -MyCredentials.java + diff --git a/src/main/java/com/example/demo/util/MyCredentials.java b/src/main/java/com/example/demo/util/MyCredentials.java new file mode 100644 index 0000000..76d008a --- /dev/null +++ b/src/main/java/com/example/demo/util/MyCredentials.java @@ -0,0 +1,8 @@ +package com.example.demo.util; + +public class MyCredentials { + public static String reCaptchaKey = "placeholder"; + public static String sendGridKey = "placeholder"; + public static String oAuthClientId = "placeholder"; + public static String oAuthClientSecret = "placeholder"; +}