Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
… into develop
  • Loading branch information
SSStanleyZ committed Sep 20, 2024
2 parents 95dc22b + a8b510a commit bf255b7
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 7 deletions.
31 changes: 30 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -49,4 +49,33 @@ jobs:
--region $AWS_REGION \
--query authorizationToken \
--output text)
mvn deploy -s .m2/settings.xml -DaltDeploymentRepository=codeartifact::default::https://mdaca-201959883603.d.codeartifact.us-east-2.amazonaws.com/maven/OHDSI/
mvn clean install
package_list=$(aws codeartifact list-packages \
--domain mdaca \
--repository OHDSI \
--format maven \
--query "packages[].{namespace:namespace,package:package}" \
--output text)
# Iterate through each package in the list
echo "$package_list" | while read -r namespace package; do
# Only proceed if both namespace and package have values
if [[ -n "$namespace" && -n "$package" ]]; then
echo "Deleting package $package in namespace $namespace"
aws codeartifact delete-package \
--domain mdaca \
--repository OHDSI \
--format maven \
--namespace "$namespace" \
--package "$package"
else
echo "Skipping invalid entry: namespace=$namespace, package=$package"
fi
done
mvn clean deploy -s .m2/settings.xml -DaltDeploymentRepository=codeartifact::default::https://mdaca-201959883603.d.codeartifact.us-east-2.amazonaws.com/maven/OHDSI/
- name: Scan a specific path with Trivy
uses: aquasecurity/trivy-action@master
with:
scan-type: 'fs'
path: '/home/runner/work/OHDSI-ArachneCommons/OHDSI-ArachneCommons/target' # Replace with the actual path you want to scan
severity: 'CRITICAL,HIGH'
16 changes: 10 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
# ArachneCommons
Commons module contains common code re-used between all Arachne components

Build and install artifact to local Maven repository:
```:shell
mvn clean install
```

The `ArachneCommons` module contains common code re-used between all Arachne components. It serves as a foundational library for various Arachne projects.

## Building and Installing

### To build and install the artifact to your local Maven repository:
```sh
mvn clean install
```
### To build and install the artifact to your remote Maven repository:
```sh
mvn clean deploy -s .m2/settings.xml -DaltDeploymentRepository=codeartifact::default::https://mdaca-201959883603.d.codeartifact.us-east-2.amazonaws.com/maven/OHDSI/
```

0 comments on commit bf255b7

Please sign in to comment.