diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 0000000..8f787bc --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,40 @@ +name: CodeQL Analysis + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "30 5 * * 1" # Monday 05:30 UTC + +concurrency: + group: codeql-${{ github.head_ref || github.ref }} + cancel-in-progress: true + +permissions: + contents: read + +jobs: + # CONTRACT: org ruleset requires this exact check name 'codeql' + # Do NOT add a 'name:' override or matrix strategy + codeql: + runs-on: ubuntu-latest + timeout-minutes: 30 + permissions: + actions: read + security-events: write + contents: read + steps: + - uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 + - name: Initialize CodeQL + uses: github/codeql-action/init@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + with: + languages: javascript-typescript + queries: +security-extended + - name: Autobuild + uses: github/codeql-action/autobuild@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 + with: + category: "/language:javascript-typescript" diff --git a/.github/workflows/lean_action_ci.yml b/.github/workflows/lean_action_ci.yml index 9f3561f..eca64ec 100644 --- a/.github/workflows/lean_action_ci.yml +++ b/.github/workflows/lean_action_ci.yml @@ -5,10 +5,17 @@ on: pull_request: workflow_dispatch: +permissions: {} + +concurrency: + group: lean-ci-${{ github.head_ref || github.ref }} + cancel-in-progress: true + env: ELAN_HOME: /home/runner/.elan jobs: + # CONTRACT: org ruleset requires this exact check name 'build' build: runs-on: ubuntu-latest permissions: diff --git a/.github/workflows/scorecard.yml b/.github/workflows/scorecard.yml new file mode 100644 index 0000000..91a81ae --- /dev/null +++ b/.github/workflows/scorecard.yml @@ -0,0 +1,24 @@ +name: OpenSSF Scorecard + +on: + push: + branches: [main] + schedule: + - cron: "15 6 * * 1" # Monday 06:15 UTC + workflow_dispatch: + +permissions: {} + +concurrency: + group: scorecard + cancel-in-progress: false + +jobs: + scorecard: + uses: Project-Navi/.github/.github/workflows/scorecard.yml@6c4c2d8f200b1b9c3bd651ebc297425e45d5934e + permissions: + contents: read + security-events: write + id-token: write + actions: read + secrets: inherit