diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 16a9212..971c79f 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -14,7 +14,7 @@ jobs: timeout-minutes: 20 steps: - name: Checkout - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 - name: Resolve QuantPlatformKit ref id: quant-platform-kit-ref @@ -31,21 +31,21 @@ jobs: echo "ref=${ref}" >> "$GITHUB_OUTPUT" - name: Checkout QuantPlatformKit - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 with: repository: QuantStrategyLab/QuantPlatformKit ref: ${{ steps.quant-platform-kit-ref.outputs.ref }} path: external/QuantPlatformKit - name: Checkout CnEquityStrategies - uses: actions/checkout@v6 + uses: actions/checkout@d23441a48e516b6c34aea4fa41551a30e30af803 # v6 with: repository: QuantStrategyLab/CnEquityStrategies ref: ${{ steps.cn-equity-strategies-ref.outputs.ref }} path: external/CnEquityStrategies - name: Setup Python - uses: actions/setup-python@v6 + uses: actions/setup-python@ece7cb06caefa5fff74198d8649806c4678c61a1 # v6 with: python-version: "3.12" diff --git a/.github/workflows/dependabot_auto_merge.yml b/.github/workflows/dependabot_auto_merge.yml index 5408f64..9327754 100644 --- a/.github/workflows/dependabot_auto_merge.yml +++ b/.github/workflows/dependabot_auto_merge.yml @@ -5,6 +5,9 @@ name: Auto Merge Dependabot PR workflows: ["CI"] types: [completed] +permissions: + contents: read + jobs: auto-merge: if: github.event.workflow_run.conclusion == 'success' && startsWith(github.event.workflow_run.head_branch, 'dependabot/') diff --git a/.github/workflows/engineering-governance.yml b/.github/workflows/engineering-governance.yml index 6da83ed..d72b888 100644 --- a/.github/workflows/engineering-governance.yml +++ b/.github/workflows/engineering-governance.yml @@ -19,7 +19,7 @@ jobs: fetch-depth: 0 persist-credentials: false - name: Scan added commits with redacted findings - uses: Pigbibi/PrGovernance/pr-governance@ccda8de572d2893272b0137526ef3e2d45e5eee7 + uses: Pigbibi/PrGovernance/pr-governance@7fe2ee20a3ee144ea944619e1c56f7ed5edc9152 with: mode: scan diff --git a/.github/workflows/hide-codex-limit-comments.yml b/.github/workflows/hide-codex-limit-comments.yml index ed525b7..2496007 100644 --- a/.github/workflows/hide-codex-limit-comments.yml +++ b/.github/workflows/hide-codex-limit-comments.yml @@ -6,6 +6,9 @@ on: pull_request_review_comment: types: [created] +permissions: + contents: read + jobs: hide-comment: runs-on: ubuntu-latest @@ -23,7 +26,7 @@ jobs: pull-requests: write steps: - name: Minimize comment - uses: actions/github-script@v8 + uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8 with: script: | const mutation = ` diff --git a/.github/workflows/risk-gate.yml b/.github/workflows/risk-gate.yml index 4fed368..7f4c1e8 100644 --- a/.github/workflows/risk-gate.yml +++ b/.github/workflows/risk-gate.yml @@ -20,7 +20,7 @@ on: # A merge made with GITHUB_TOKEN raises no push, and nothing raises an event # for a resolved review thread, so a sweep closes both gaps. schedule: - - cron: '17 */6 * * *' + - cron: '17 3 * * *' workflow_dispatch: inputs: pr_number: @@ -51,7 +51,7 @@ jobs: statuses: write steps: - name: Record label head - uses: Pigbibi/PrGovernance/pr-governance@ccda8de572d2893272b0137526ef3e2d45e5eee7 + uses: Pigbibi/PrGovernance/pr-governance@7fe2ee20a3ee144ea944619e1c56f7ed5edc9152 env: GOVERNANCE_OWNER_ID: ${{ vars.RISK_GATE_OWNER_ID }} GOVERNANCE_OWNER_LOGIN: ${{ vars.RISK_GATE_OWNER }} @@ -85,7 +85,7 @@ jobs: cancel-in-progress: true steps: - name: Evaluate - uses: Pigbibi/PrGovernance/pr-governance@ccda8de572d2893272b0137526ef3e2d45e5eee7 + uses: Pigbibi/PrGovernance/pr-governance@7fe2ee20a3ee144ea944619e1c56f7ed5edc9152 env: GOVERNANCE_OWNER_ID: ${{ vars.RISK_GATE_OWNER_ID }} GOVERNANCE_OWNER_LOGIN: ${{ vars.RISK_GATE_OWNER }}