-
Notifications
You must be signed in to change notification settings - Fork 9
New v1.0.0b8 Version - Enabling CRUD functionalities for STAC items #183
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: Lint, Format and Type Check | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- beta/* | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
jobs: | ||
lint: | ||
runs-on: ${{ github.repository_visibility == 'private' && 'ed-runner-set' || 'ubuntu-latest' }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.10", "3.11", "3.12", "3.13"] | ||
container: | ||
image: python:${{ matrix.python-version }} | ||
|
||
steps: | ||
- uses: actions/checkout@v4 | ||
|
||
- name: Install system dependencies | ||
run: | | ||
apt-get update | ||
apt-get install -y gdal-bin libgdal-dev | ||
|
||
- name: Install Poetry | ||
run: pip install poetry | ||
|
||
- name: Install test dependencies | ||
run: poetry install --only tests | ||
|
||
- name: Run Linting | ||
run: poetry run tox -e lint | ||
|
||
- name: Run Formatting Check | ||
run: poetry run tox -e format | ||
Original file line number | Diff line number | Diff line change | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,52 @@ | |||||||||||||||||
name: Publish to CodeArtifact | |||||||||||||||||
|
|||||||||||||||||
on: | |||||||||||||||||
push: | |||||||||||||||||
branches: | |||||||||||||||||
- main | |||||||||||||||||
|
|||||||||||||||||
jobs: | |||||||||||||||||
publish-to-codeartifact: | |||||||||||||||||
name: Upload to AWS CodeArtifact | |||||||||||||||||
runs-on: [ed-runner-set] | |||||||||||||||||
container: | |||||||||||||||||
image: python:3.13-slim | |||||||||||||||||
|
|||||||||||||||||
steps: | |||||||||||||||||
- name: Install system dependencies | |||||||||||||||||
run: | | |||||||||||||||||
apt-get update | |||||||||||||||||
apt-get install -y curl unzip gnupg awscli build-essential | |||||||||||||||||
|
|||||||||||||||||
- name: Checkout repo | |||||||||||||||||
uses: actions/checkout@v4 | |||||||||||||||||
|
|||||||||||||||||
- name: Configure AWS credentials | |||||||||||||||||
uses: aws-actions/configure-aws-credentials@v4 | |||||||||||||||||
with: | |||||||||||||||||
aws-access-key-id: ${{ secrets.AWS_ACCESS_KEY_ID }} | |||||||||||||||||
aws-secret-access-key: ${{ secrets.AWS_SECRET_ACCESS_KEY }} | |||||||||||||||||
aws-region: us-east-1 | |||||||||||||||||
|
|||||||||||||||||
- name: Install Poetry | |||||||||||||||||
run: pip install poetry | |||||||||||||||||
|
|||||||||||||||||
- name: Clean old dist | |||||||||||||||||
run: rm -rf dist/ | |||||||||||||||||
|
|||||||||||||||||
- name: Build package with Poetry | |||||||||||||||||
run: poetry build | |||||||||||||||||
|
|||||||||||||||||
- name: Login to CodeArtifact | |||||||||||||||||
run: | | |||||||||||||||||
aws codeartifact login \ | |||||||||||||||||
--tool twine \ | |||||||||||||||||
--repository pypi \ | |||||||||||||||||
--domain urthecast \ | |||||||||||||||||
--domain-owner ${{ secrets.FGPROD_ACCOUNT_ID }} \ | |||||||||||||||||
--region us-east-1 | |||||||||||||||||
|
|||||||||||||||||
- name: Install twine and publish to CodeArtifact | |||||||||||||||||
run: | | |||||||||||||||||
pip install twine | |||||||||||||||||
twine upload --repository codeartifact dist/* --verbose | |||||||||||||||||
Comment on lines
+10
to
+52
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 3 days ago To fix the issue, we will add a The
Suggested changeset
1
.github/workflows/publish_to_codeartifact.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Original file line number | Diff line number | Diff line change | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -1,26 +1,33 @@ | ||||||||||||||||||||
name: "Secret Scanning" | ||||||||||||||||||||
name: Secret Scanning | ||||||||||||||||||||
|
||||||||||||||||||||
on: | ||||||||||||||||||||
push: | ||||||||||||||||||||
branches: | ||||||||||||||||||||
- main | ||||||||||||||||||||
- beta/* | ||||||||||||||||||||
pull_request: | ||||||||||||||||||||
branches: | ||||||||||||||||||||
- main | ||||||||||||||||||||
- beta/* | ||||||||||||||||||||
workflow_dispatch: | ||||||||||||||||||||
|
||||||||||||||||||||
jobs: | ||||||||||||||||||||
secret-scan: | ||||||||||||||||||||
name: Scan for Secrets | ||||||||||||||||||||
runs-on: ubuntu-latest | ||||||||||||||||||||
permissions: | ||||||||||||||||||||
contents: read | ||||||||||||||||||||
security-events: write | ||||||||||||||||||||
security-secrets: | ||||||||||||||||||||
name: TruffleHog Secret Scan | ||||||||||||||||||||
runs-on: ${{ github.repository_visibility == 'private' && 'ed-runner-set' || 'ubuntu-latest' }} | ||||||||||||||||||||
container: | ||||||||||||||||||||
image: alpine:latest | ||||||||||||||||||||
steps: | ||||||||||||||||||||
- name: Checkout code | ||||||||||||||||||||
uses: actions/checkout@v4 | ||||||||||||||||||||
- name: Install Git and dependencies | ||||||||||||||||||||
run: | | ||||||||||||||||||||
apk add --no-cache git curl jq | ||||||||||||||||||||
|
||||||||||||||||||||
- name: Clone the repository manually | ||||||||||||||||||||
env: | ||||||||||||||||||||
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||||||||||||||||||||
run: | | ||||||||||||||||||||
git clone https://x-access-token:${GH_TOKEN}@github.com/${GITHUB_REPOSITORY}.git repo | ||||||||||||||||||||
cd repo | ||||||||||||||||||||
|
||||||||||||||||||||
# install TruffleHog | ||||||||||||||||||||
curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin | ||||||||||||||||||||
|
||||||||||||||||||||
- name: Run TruffleHog OSS | ||||||||||||||||||||
uses: trufflesecurity/trufflehog@v3.88.17 | ||||||||||||||||||||
# run TruffleHog scan | ||||||||||||||||||||
trufflehog filesystem "." --results=verified,unknown --fail --json | jq | ||||||||||||||||||||
Comment on lines
+13
to
+33
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {}
Copilot AutofixAI 7 days ago To fix the issue, we will add a
Suggested changeset
1
.github/workflows/secret-scanning.yml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Original file line number | Diff line number | Diff line change | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
@@ -0,0 +1,45 @@ | |||||||||||||||||
name: earthdaily-python-client CI | |||||||||||||||||
|
|||||||||||||||||
on: | |||||||||||||||||
push: | |||||||||||||||||
branches: | |||||||||||||||||
- main | |||||||||||||||||
- beta/* | |||||||||||||||||
pull_request: | |||||||||||||||||
workflow_dispatch: | |||||||||||||||||
|
|||||||||||||||||
jobs: | |||||||||||||||||
test: | |||||||||||||||||
name: Unit Tests (Python ${{ matrix.python-version }}) | |||||||||||||||||
runs-on: ${{ github.repository_visibility == 'private' && 'ed-runner-set' || 'ubuntu-latest' }} | |||||||||||||||||
strategy: | |||||||||||||||||
matrix: | |||||||||||||||||
python-version: ["3.10", "3.11", "3.12", "3.13"] | |||||||||||||||||
include: | |||||||||||||||||
- python-version: "3.10" | |||||||||||||||||
tox_env: py310 | |||||||||||||||||
- python-version: "3.11" | |||||||||||||||||
tox_env: py311 | |||||||||||||||||
- python-version: "3.12" | |||||||||||||||||
tox_env: py312 | |||||||||||||||||
- python-version: "3.13" | |||||||||||||||||
tox_env: py313 | |||||||||||||||||
container: | |||||||||||||||||
image: python:${{ matrix.python-version }} | |||||||||||||||||
|
|||||||||||||||||
steps: | |||||||||||||||||
- uses: actions/checkout@v4 | |||||||||||||||||
|
|||||||||||||||||
- name: Install GDAL and dependencies | |||||||||||||||||
run: | | |||||||||||||||||
apt-get update | |||||||||||||||||
apt-get install -y gdal-bin libgdal-dev | |||||||||||||||||
|
|||||||||||||||||
- name: Install Poetry | |||||||||||||||||
run: pip install poetry | |||||||||||||||||
|
|||||||||||||||||
- name: Install test dependencies | |||||||||||||||||
run: poetry install --only tests | |||||||||||||||||
|
|||||||||||||||||
- name: Run tests with tox | |||||||||||||||||
run: poetry run tox -e ${{ matrix.tox_env }} | |||||||||||||||||
Comment on lines
+13
to
+45
Check warningCode scanning / CodeQL Workflow does not contain permissions Medium test
Actions job or workflow does not limit the permissions of the GITHUB_TOKEN. Consider setting an explicit permissions block, using the following as a minimal starting point: {contents: read}
Copilot AutofixAI 7 days ago To fix the issue, we will add a
Suggested changeset
1
.github/workflows/test.yaml
Copilot is powered by AI and may make mistakes. Always verify output.
Positive FeedbackNegative Feedback
Refresh and try again.
|
Uh oh!
There was an error while loading. Please reload this page.