Remove secret from cicd #434
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Planetary Computer APIs PR CI | |
on: | |
pull_request: | |
branches: [main] | |
permissions: | |
id-token: write | |
contents: read | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
# - name: Run cibuild | |
# run: ./scripts/cibuild | |
- name: Log in with Azure | |
uses: azure/login@v1 | |
with: | |
client-id: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).clientId }} | |
tenant-id: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).tenantId }} | |
subscription-id: ${{ fromJSON(secrets.SECURE_AZURE_CREDENTIALS).subscriptionId }} | |
- name: 'Run Azure CLI commands' | |
run: | | |
az role assignment list --output json | |
pwd | |
- name: Authenticate | |
run: ./scripts/ciauthenticate | |
validate: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v4 | |
with: | |
python-version: "3.10" # stac-api-validator requires >= 3.10 | |
cache: "pip" | |
- name: Validate | |
run: ./scripts/validate |