Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Private central contract repo with url param pat #21

Open
wants to merge 11 commits into
base: main
Choose a base branch
from
7 changes: 0 additions & 7 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/maven.yml
Original file line number Diff line number Diff line change
@@ -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:
Expand Down Expand Up @@ -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
4 changes: 2 additions & 2 deletions specmatic.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
]
Expand Down Expand Up @@ -30,4 +30,4 @@
}
}
}
}
}
Loading