diff --git a/.github/dependabot.yml b/.github/dependabot.yml index bb6f91c..d6f334b 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -1,17 +1,10 @@ -# To get started with Dependabot version updates, you'll need to specify which -# package ecosystems to update and where the package manifests are located. -# Please see the documentation for all configuration options: -# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates - version: 2 updates: - # Maintain dependencies for Gradle - package-ecosystem: "maven" directory: "/" schedule: interval: "daily" - # Maintain dependencies for GitHub Actions - package-ecosystem: "github-actions" directory: "/" schedule: diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index f13db6a..0ce3520 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -39,6 +39,8 @@ jobs: distribution: 'adopt' - name: Build with Maven + env: + CENTRAL_CONTRACT_REPO_PAT: ${{ secrets.CENTRAL_CONTRACT_REPO_ACCESS_TOKEN }} run: mvn -B package --file pom.xml - name: Perform CodeQL Analysis diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index 7267942..adab5dd 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -1,6 +1,3 @@ -# This workflow will build a Java project with Maven -# For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven - name: Java CI with Maven on: @@ -28,9 +25,11 @@ jobs: java-version: ${{ matrix.java }} - name: Build with Maven working-directory: main + env: + CENTRAL_CONTRACT_REPO_PAT: ${{ secrets.CENTRAL_CONTRACT_REPO_ACCESS_TOKEN }} run: mvn test package jacoco:report - name: Upload artifact uses: actions/upload-artifact@v3 with: name: jacoco coverage report - path: /home/runner/work/specmatic-order-api/specmatic-order-api/main/target/site/jacoco + path: /home/runner/work/specmatic-order-api/specmatic-order-api/main/target/site/jacoco \ No newline at end of file diff --git a/specmatic.json b/specmatic.json index dff4d65..1194300 100644 --- a/specmatic.json +++ b/specmatic.json @@ -2,7 +2,7 @@ "sources": [ { "provider": "git", - "repository": "https://github.com/znsio/specmatic-order-contracts.git", + "repository": "https://${CENTRAL_CONTRACT_REPO_PAT}@github.com/znsio/central-contract-repo-private.git", "test": [ "in/specmatic/examples/store/api_order_v3.yaml" ] @@ -30,4 +30,4 @@ } } } -} +} \ No newline at end of file