Skip to content

Commit

Permalink
Merge pull request #102 from yamachu/re-debug
Browse files Browse the repository at this point in the history
GitHub Actionsの必要なPermissionを更に調べる
  • Loading branch information
github-actions[bot] authored May 6, 2024
2 parents 7f83fde + c7b6e1e commit 5c37572
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
6 changes: 5 additions & 1 deletion .github/workflows/merge-queue-trigger-handler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,12 @@ jobs:
CommentHandle:
if: (contains(github.event.comment.body, '/mq') && github.event.issue.pull_request != null)
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
actions: write
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: yamachu/merge-queue-action/precheck@main
- uses: actions/checkout@v4
with:
Expand Down
9 changes: 7 additions & 2 deletions .github/workflows/testing-queue.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,14 @@ concurrency:
jobs:
PreTesting:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
outputs:
base-branch: ${{ steps.pretesting.outputs.base-branch }}
base-branch-sha: ${{ steps.pretesting.outputs.base-branch-sha }}
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: yamachu/merge-queue-action/pretesting@main
id: pretesting
with:
Expand All @@ -36,8 +39,10 @@ jobs:
PostTesting:
runs-on: ubuntu-latest
needs: [PreTesting, Test]
permissions:
contents: write
pull-requests: write
steps:
- uses: GitHubSecurityLab/actions-permissions/monitor@v1
- uses: yamachu/merge-queue-action/posttesting@main
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
Expand Down

0 comments on commit 5c37572

Please sign in to comment.