diff --git a/.github/workflows/scm_configuration_check.yaml b/.github/workflows/scm_configuration_check.yaml deleted file mode 100644 index 5abcf8a68..000000000 --- a/.github/workflows/scm_configuration_check.yaml +++ /dev/null @@ -1,66 +0,0 @@ -name: Daily SCM Configuration Check - -on: - schedule: - # Run daily at 9:00 AM UTC - - cron: "0 9 * * *" - workflow_dispatch: # Allow manual triggering - -permissions: read-all - -jobs: - scm-configuration-check: - runs-on: ubuntu-latest - permissions: - contents: read - id-token: write - - env: - CHAINLOOP_WORKFLOW_NAME: scm-configuration-check - CHAINLOOP_PROJECT_NAME: chainloop - GITHUB_TOKEN: ${{ github.token }} - - steps: - - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 - with: - persist-credentials: false - - - name: Install Chainloop - run: | - curl -sfL https://dl.chainloop.dev/cli/install.sh | bash -s - - - name: Initialize Attestation - run: | - chainloop attestation init --org chainloop --workflow ${CHAINLOOP_WORKFLOW_NAME} --project ${CHAINLOOP_PROJECT_NAME} - - - name: Generate a token - id: generate-token - uses: actions/create-github-app-token@bcd2ba49218906704ab6c1aa796996da409d3eb1 # v3.2.0 - with: - app-id: ${{ vars.CHAINLOOP_GATHERER_APP_ID }} - private-key: ${{ secrets.GATHERER_APP_PRIVATE_KEY }} - permission-contents: read - permission-metadata: read - - - name: Gather runner context data - run: | - chainloop gather-runner-context --runner-token ${{ steps.generate-token.outputs.token }} --branches=main - - - name: Add runner context material to attestation - run: | - chainloop attestation add --name runner-context --value ./runner-context.json --kind CHAINLOOP_RUNNER_CONTEXT - - - name: Finish and Record Attestation - if: ${{ success() }} - run: | - chainloop attestation push --exception-bypass-policy-check - - - name: Mark attestation as failed - if: ${{ failure() }} - run: | - chainloop attestation reset - - - name: Mark attestation as cancelled - if: ${{ cancelled() }} - run: | - chainloop attestation reset --trigger cancellation