-
Notifications
You must be signed in to change notification settings - Fork 46
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding a workflow for reviewing code changes using stepsecurity code …
…reviewer
- Loading branch information
1 parent
5d5d342
commit b4ed311
Showing
1 changed file
with
23 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
name: Code Review | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
- int | ||
jobs: | ||
code-review: | ||
name: int tests | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: read | ||
pull-requests: write | ||
steps: | ||
- name: Harden Runner | ||
uses: step-security/harden-runner@6b3083af2869dc3314a0257a42f4af696cc79ba3 | ||
with: | ||
egress-policy: audit # TODO: change to 'egress-policy: block' after couple of runs | ||
|
||
- name: Code Review | ||
uses: docker://ghcr.io/step-security/code-reviewer/int:latest # docker pull ghcr.io/step-security/code-reviewer/int:latest | ||
env: | ||
PAT: ${{ secrets.GITHUB_TOKEN }} |