-
Enable dependabot and dependency graph in your project settings at
https://github.com/ORG/REPO/settings/security_analysis -
Create the following workflow(s)
- Basic build/test using java 17 and
./gradlew check assemble
# .github/workflows/gradle.yml name: Java Build with Gradle on: push: branches: ["main"] pull_request: branches: ["main"] jobs: build: runs-on: ubuntu-latest permissions: contents: write # This is required so that the dependency check can push dependency graph to the github repository steps: - uses: specmatic/specmatic-github-workflows/action-build-gradle@main with: gradle-extra-args: "-Pfoo=bar" # pass any extra gradle args here
- Basic build/test using java 17 and
-
For the fetch scripts, create a
~/.m2/settings.xmlfile. Be sure to defineSPECMATIC_GITHUB_USERandSPECMATIC_GITHUB_TOKENin your shell.<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 https://maven.apache.org/xsd/settings-1.0.0.xsd"> <profiles> <profile> <activation> <activeByDefault>true</activeByDefault> </activation> <id>default</id> <repositories> <repository> <id>central</id> <url>https://repo.maven.apache.org/maven2</url> </repository> <repository> <id>confluent</id> <url>https://packages.confluent.io/maven</url> </repository> <repository> <id>specmaticPrivate</id> <url>https://maven.pkg.github.com/specmatic/specmatic-private-maven-repo</url> </repository> </repositories> </profile> </profiles> <servers> <server> <id>specmaticPrivate</id> <username>${env.SPECMATIC_GITHUB_USER}</username> <password>${env.SPECMATIC_GITHUB_TOKEN}</password> </server> </servers> </settings>
-
Clone/pull this repository
-
Clone/pull the
specmatic-insights-terraformrepository -
Execute the following:
export GPG_PASSPHRASE=... # decrypt the secrets file /path/to/specmatic-insights-terraform/bin/gpg-crypt decrypt specmatic-secrets.env.gpg cd ../path-to-repo-you-want-to-setup # load the secrets into the environment source /path/to/specmatic-github-workflows/specmatic-secrets.env # execute the setup script /path/to/specmatic-github-workflows/bin/setup-repo [-y]