Skip to content

Scheduled - ACR Onboarding #9

Scheduled - ACR Onboarding

Scheduled - ACR Onboarding #9

name: Scheduled - ACR Onboarding
on:
workflow_dispatch: # Triggered manually via GitHub UI
schedule:
- cron: '0 6 * * 1' # At 06:00 on Monday
env:
PRISMA_API_URL: ${{ secrets.PRISMA_API_URL }}
PRISMA_ACCESS_KEY: ${{ secrets.PRISMA_ACCESS_KEY }}
PRISMA_SECRET_KEY: ${{ secrets.PRISMA_SECRET_KEY }}
AZURE_CLIENT_ID: ${{ secrets.AZURE_CLIENT_ID }}
AZURE_CLIENT_SECRET: ${{ secrets.AZURE_CLIENT_SECRET }}
AZURE_TENANT_ID: ${{ secrets.AZURE_TENANT_ID }}
jobs:
acr_onboarding:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.11'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run main.py script
run: |
python acr_automatic_onboarding.py --force-onboard