diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3d9429ef2..166db9762 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,7 +19,7 @@ jobs: run: script/cibuild - name: Upload gh-ost binary artifact - uses: actions/upload-artifact@v1 + uses: actions/upload-artifact@v4 with: name: gh-ost path: bin/gh-ost diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4fa20813a..9d94d9fae 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -2,12 +2,18 @@ name: "CodeQL analysis" on: push: + branches: [ master ] pull_request: + branches: [ master ] schedule: - - cron: '0 0 * * 0' + - cron: '25 22 * * 6' jobs: codeql: + permissions: + actions: read + contents: read + security-events: write strategy: fail-fast: false @@ -16,10 +22,10 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v2 + uses: actions/checkout@v4 - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3