Add host 1798 to excluded storage restrictions (#54333) #3203
This file contains hidden or 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: "Apply latest configuration to dogfood with GitOps" | |
| on: | |
| push: | |
| branches: | |
| - main | |
| paths: | |
| - "it-and-security/**" | |
| - ".github/workflows/dogfood-gitops.yml" | |
| pull_request: | |
| paths: | |
| - "it-and-security/**" | |
| - ".github/workflows/dogfood-gitops.yml" | |
| workflow_dispatch: # allows manual triggering | |
| schedule: | |
| - cron: "0 6 * * *" # Nightly 6AM UTC | |
| # Prevent concurrent runs of this workflow, but allow all runs to finish. | |
| concurrency: | |
| group: ${{ github.workflow }} | |
| cancel-in-progress: false | |
| defaults: | |
| run: | |
| shell: bash | |
| # Limit permissions of GITHUB_TOKEN. | |
| permissions: | |
| contents: read | |
| jobs: | |
| fleet-gitops: | |
| timeout-minutes: 30 | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Harden Runner | |
| uses: step-security/harden-runner@9af89fc71515a100421586dfdb3dc9c984fbf411 # v2.19.4 | |
| with: | |
| egress-policy: audit | |
| - name: Checkout our repository | |
| uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| with: | |
| persist-credentials: false | |
| # DOGFOOD_GITOPS_SECRETS_JSON is a JSON bundle holding all the individual | |
| # secrets this workflow's gitops step needs. See .github/actions/expand-secrets/README.md for how to | |
| # update it. | |
| - name: Expand secrets bundle | |
| uses: ./.github/actions/expand-secrets | |
| with: | |
| secrets-json: ${{ secrets.DOGFOOD_GITOPS_SECRETS_JSON }} | |
| - name: Apply latest configuration to Fleet | |
| uses: ./.github/actions/gitops | |
| with: | |
| dry-run-only: ${{ github.event_name == 'pull_request' && 'true' || 'false' }} | |
| env: | |
| FLEET_GITOPS_DIR: ${{ github.workspace }}/it-and-security | |
| FLEET_URL: https://dogfood.fleetdm.com | |
| FLEET_API_TOKEN: ${{ env.DOGFOOD_API_TOKEN }} | |
| DOGFOOD_APPLE_BM_DEFAULT_TEAM: "💻 Workstations" | |
| DOGFOOD_MACOS_MIGRATION_WEBHOOK_URL: ${{ env.DOGFOOD_MACOS_MIGRATION_WEBHOOK_URL }} | |
| DOGFOOD_GLOBAL_ENROLL_SECRET: ${{ env.DOGFOOD_GLOBAL_ENROLL_SECRET }} | |
| DOGFOOD_SSO_METADATA: ${{ env.DOGFOOD_SSO_METADATA }} | |
| DOGFOOD_MDM_SSO_METADATA_URL: ${{ env.DOGFOOD_MDM_SSO_METADATA_URL }} | |
| DOGFOOD_FAILING_POLICIES_WEBHOOK_URL: ${{ env.DOGFOOD_FAILING_POLICIES_WEBHOOK_URL }} | |
| DOGFOOD_VULNERABILITIES_WEBHOOK_URL: ${{ env.DOGFOOD_VULNERABILITIES_WEBHOOK_URL }} | |
| DOGFOOD_WORKSTATIONS_ENROLL_SECRET: ${{ env.DOGFOOD_WORKSTATIONS_ENROLL_SECRET }} | |
| DOGFOOD_WORKSTATIONS_CANARY_ENROLL_SECRET: ${{ env.DOGFOOD_WORKSTATIONS_CANARY_ENROLL_SECRET }} | |
| DOGFOOD_SERVERS_ENROLL_SECRET: ${{ env.DOGFOOD_SERVERS_ENROLL_SECRET }} | |
| DOGFOOD_SERVERS_CANARY_ENROLL_SECRET: ${{ env.DOGFOOD_SERVERS_CANARY_ENROLL_SECRET }} | |
| DOGFOOD_EXPLORE_DATA_ENROLL_SECRET: ${{ env.DOGFOOD_EXPLORE_DATA_ENROLL_SECRET }} | |
| DOGFOOD_CALENDAR_API_KEY: ${{ env.DOGFOOD_CALENDAR_API_KEY }} | |
| DOGFOOD_COMPANY_OWNED_IPHONES_ENROLL_SECRET: ${{ env.DOGFOOD_COMPANY_OWNED_IPHONES_ENROLL_SECRET }} | |
| DOGFOOD_COMPANY_OWNED_IPADS_ENROLL_SECRET: ${{ env.DOGFOOD_COMPANY_OWNED_IPADS_ENROLL_SECRET }} | |
| DOGFOOD_COMPANY_OWNED_MOBILE_DEVICES_ENROLL_SECRET: ${{ env.DOGFOOD_COMPANY_OWNED_MOBILE_DEVICES_ENROLL_SECRET }} | |
| DOGFOOD_PERSONAL_MOBILE_DEVICES_ENROLL_SECRET: ${{ env.DOGFOOD_PERSONAL_MOBILE_DEVICES_ENROLL_SECRET }} | |
| FLEET_SECRET_MANAGED_CHROME_ENROLLMENT_TOKEN: ${{ env.CLOUD_MANAGEMENT_ENROLLMENT_TOKEN }} | |
| DOGFOOD_PERSONALLY_OWNED_IPHONES_ENROLL_SECRET: ${{ env.DOGFOOD_PERSONALLY_OWNED_IPHONES_ENROLL_SECRET }} | |
| DOGFOOD_ACTIVITIES_WEBHOOK_URL: ${{ env.DOGFOOD_ACTIVITIES_WEBHOOK_URL }} | |
| DOGFOOD_CALENDAR_WEBHOOK_URL: ${{ env.DOGFOOD_CALENDAR_WEBHOOK_URL }} | |
| DOGFOOD_HOST_STATUS_WEBHOOK_URL: ${{ env.DOGFOOD_HOST_STATUS_WEBHOOK_URL }} | |
| DOGFOOD_END_USER_SSO_METADATA: ${{ env.DOGFOOD_END_USER_SSO_METADATA }} | |
| DOGFOOD_TESTING_AND_QA_ENROLL_SECRET: ${{ env.DOGFOOD_TESTING_AND_QA_ENROLL_SECRET }} | |
| DOGFOOD_OKTA_CA_CERTIFICATE: ${{ env.DOGFOOD_OKTA_CA_CERTIFICATE }} | |
| DOGFOOD_OKTA_ANDROID_MANAGEMENT_HINT: ${{ env.DOGFOOD_OKTA_ANDROID_MANAGEMENT_HINT }} | |
| DOGFOOD_OKTA_IOS_MANAGEMENT_HINT: ${{ env.DOGFOOD_OKTA_IOS_MANAGEMENT_HINT }} | |
| DOGFOOD_OKTA_VERIFY_WINDOWS_URL: ${{ env.DOGFOOD_OKTA_VERIFY_WINDOWS_URL }} | |
| DOGFOOD_OKTA_VERIFY_LINUX_URL: ${{ env.DOGFOOD_OKTA_VERIFY_LINUX_URL }} | |
| DOGFOOD_ENTRA_TENANT_ID: ${{ env.DOGFOOD_ENTRA_TENANT_ID }} | |
| DOGFOOD_OKTA_METADATA_URL_ADMINS: ${{ env.DOGFOOD_OKTA_METADATA_URL_ADMINS }} | |
| DOGFOOD_OKTA_METADATA_URL_END_USERS: ${{ env.DOGFOOD_OKTA_METADATA_URL_END_USERS }} | |
| DOGFOOD_ENTRA_CLIENT_ID: ${{ env.DOGFOOD_ENTRA_CLIENT_ID }} | |
| - name: Notify on Gitops failure | |
| if: failure() && github.ref_name == 'main' | |
| uses: slackapi/slack-github-action@e28cf165c92ffef168d23c5c9000cffc8a25e117 # v1.24.0 | |
| with: | |
| payload: | | |
| { | |
| "text": "GitOps run failed for ${{ env.RUN_URL }}", | |
| "blocks": [ | |
| { | |
| "type": "section", | |
| "text": { | |
| "type": "mrkdwn", | |
| "text": "GitOps run failed on ${{ github.ref_name }}" | |
| } | |
| }, | |
| { | |
| "type": "section", | |
| "text": { | |
| "type": "mrkdwn", | |
| "text": "For more details see:\n${{ env.RUN_URL }}" | |
| } | |
| } | |
| ] | |
| } | |
| env: | |
| RUN_URL: https://github.com/fleetdm/fleet/actions/runs/${{ github.run_id }}\n${{ github.event.pull_request.html_url || github.event.head.html_url }} | |
| SLACK_WEBHOOK_URL: ${{ secrets.SLACK_G_HELP_DOGFOODING_WEBHOOK_URL }} | |
| SLACK_WEBHOOK_TYPE: INCOMING_WEBHOOK |