diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index ed43679..82b411b 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -34,8 +34,15 @@ jobs: with: # Run GitOps in dry-run mode for pull requests. dry-run-only: ${{ github.event_name == 'pull_request' && 'true' || 'false' }} - # Add FLEET_URL and FLEET_API_TOKEN to the repository secrets. + # Add the environment variables below to the repository secrets. # In addition, specify or add secrets for all the environment variables that are mentioned in the global/team YAML files. env: - FLEET_URL: ${{ secrets.FLEET_URL }} FLEET_API_TOKEN: ${{ secrets.FLEET_API_TOKEN }} + FLEET_DEDICATED_DEVICES_ENROLL_SECRET: ${{ secrets.FLEET_DEDICATED_DEVICES_ENROLL_SECRET }} + FLEET_EMPLOYEE_ISSUED_MOBILE_DEVICES_ENROLL_SECRET: ${{ secrets.FLEET_EMPLOYEE_ISSUED_MOBILE_DEVICES_ENROLL_SECRET }} + FLEET_IT_SERVERS_ENROLL_SECRET: ${{ secrets.FLEET_IT_SERVERS_ENROLL_SECRET }} + FLEET_PERSONAL_MOBILE_DEVICES_ENROLL_SECRET: ${{ secrets.FLEET_PERSONAL_MOBILE_DEVICES_ENROLL_SECRET }} + FLEET_URL: ${{ secrets.FLEET_URL }} + FLEET_WORKSTATIONS_ENROLL_SECRET: ${{ secrets.FLEET_WORKSTATIONS_ENROLL_SECRET }} + + diff --git a/teams/dedicated-devices.yml b/teams/dedicated-devices.yml index 849eb79..524eb25 100644 --- a/teams/dedicated-devices.yml +++ b/teams/dedicated-devices.yml @@ -6,4 +6,4 @@ controls: software: team_settings: secrets: - - secret: "REPLACE_WITH_ENVIRONMENT_VARIABLE_1" # Learn how: https://fleetdm.com/guides/secrets-in-scripts-and-configuration-profiles#gitops + - secret: "$FLEET_DEDICATED_DEVICES_ENROLL_SECRET" diff --git a/teams/employee-issued-mobile-devices.yml b/teams/employee-issued-mobile-devices.yml index 14ba6a1..21435f1 100644 --- a/teams/employee-issued-mobile-devices.yml +++ b/teams/employee-issued-mobile-devices.yml @@ -6,4 +6,4 @@ controls: software: team_settings: secrets: - - secret: "REPLACE_WITH_ENVIRONMENT_VARIABLE_2" # Learn how: https://fleetdm.com/guides/secrets-in-scripts-and-configuration-profiles#gitops + - secret: "$FLEET_EMPLOYEE_ISSUED_MOBILE_DEVICES_ENROLL_SECRET" diff --git a/teams/it-servers.yml b/teams/it-servers.yml index a8b928c..a6c0a31 100644 --- a/teams/it-servers.yml +++ b/teams/it-servers.yml @@ -6,4 +6,4 @@ controls: software: team_settings: secrets: - - secret: "REPLACE_WITH_ENVIRONMENT_VARIABLE_4" # Learn how: https://fleetdm.com/guides/secrets-in-scripts-and-configuration-profiles#gitops + - secret: "$FLEET_IT_SERVERS_ENROLL_SECRET" diff --git a/teams/personal-mobile-devices.yml b/teams/personal-mobile-devices.yml index 84dc813..359eaf5 100644 --- a/teams/personal-mobile-devices.yml +++ b/teams/personal-mobile-devices.yml @@ -6,4 +6,4 @@ controls: software: team_settings: secrets: - - secret: "REPLACE_WITH_ENVIRONMENT_VARIABLE_3" # Learn how: https://fleetdm.com/guides/secrets-in-scripts-and-configuration-profiles#gitops + - secret: "$FLEET_PERSONAL_MOBILE_DEVICES_ENROLL_SECRET" \ No newline at end of file diff --git a/teams/workstations.yml b/teams/workstations.yml index 9fbc0d4..67eaefc 100644 --- a/teams/workstations.yml +++ b/teams/workstations.yml @@ -6,4 +6,4 @@ controls: software: team_settings: secrets: - - secret: "REPLACE_WITH_ENVIRONMENT_VARIABLE_5" # Learn how: https://fleetdm.com/guides/secrets-in-scripts-and-configuration-profiles#gitops + - secret: "$FLEET_WORKSTATIONS_ENROLL_SECRET" \ No newline at end of file