Update okta.yml #7
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: Run Okta Scripts | |
on: | |
push: | |
branches: | |
- main | |
# schedule: | |
# - cron: "0 0 * * *" # Runs daily at midnight | |
workflow_dispatch: # Allows manual triggering of the workflow | |
jobs: | |
run-okta-scripts: | |
runs-on: ubuntu-latest | |
env: | |
OKTA_DOMAIN: ${{ secrets.OKTA_DOMAIN }} | |
OKTA_API_TOKEN: ${{ secrets.OKTA_API_TOKEN }} | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Set up Python | |
uses: actions/setup-python@v3 | |
with: | |
python-version: "3.x" | |
- name: Prepare Environment | |
id: prep | |
run: /bin/bash scripts/prep.sh | |
continue-on-error: false | |
- name: Run check-authentication-settings | |
run: python src/evidence-collection/okta/check_authentication_settings.py | |
- name: Run check-deactivated-users | |
run: python src/evidence-collection/okta/check_deactivated_users.py | |
- name: Run check-mfa-enrollments | |
run: python src/evidence-collection/okta/check_mfa_enrollments.py | |
- name: Run check-password-policies | |
run: python src/evidence-collection/okta/check_password_policies.py | |
- name: Run check-users-and-groups | |
run: python src/evidence-collection/okta/check_users_and_groups.py |