From 020c756c3b385086b1295aa21471f0038db60dc4 Mon Sep 17 00:00:00 2001 From: Wade Zhang Date: Sun, 22 Sep 2024 22:46:02 +0800 Subject: [PATCH] Fix GitHub Actions workflows --- .github/workflows/ci.yml | 17 +++++++++++------ 1 file changed, 11 insertions(+), 6 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0f837b3..608b538 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,14 +1,19 @@ name: CI on: - - push -permissions: - issues: write - pull-requests: write - # For GitHub Comment Reporter - # https://megalinter.io/latest/reporters/GitHubCommentReporter/ + push: + pull_request: + branches: + - main + - master +permissions: read-all jobs: mega-linter: runs-on: ubuntu-latest + permissions: + issues: write + pull-requests: write + # For GitHub Comment Reporter + # https://megalinter.io/latest/reporters/GitHubCommentReporter/ steps: - uses: actions/checkout@v4