diff --git a/.github/workflows/CI.yaml b/.github/workflows/CI.yaml index 2db233ab..7909ee7c 100644 --- a/.github/workflows/CI.yaml +++ b/.github/workflows/CI.yaml @@ -31,6 +31,8 @@ jobs: image-test: name: Check for image build and CVE runs-on: ubuntu-latest + permissions: + pull-requests: write steps: - name: Checkout uses: actions/checkout@v3 @@ -77,11 +79,12 @@ jobs: run: | echo "${{ steps.trivy.outputs.stdout }}" - - name: Comment PR + - name: Comment PR for CVE uses: thollander/actions-comment-pull-request@v2 with: message: | ``` ${{ steps.trivy.outputs.stdout }} ``` + comment_tag: cve GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/README.md b/README.md index 1f5cf812..5eba22b6 100644 --- a/README.md +++ b/README.md @@ -62,7 +62,7 @@ Now the server should be running on `127.0.0.1:3333`, visiting `http://127.0.0.1 ## Custom config -If you'd like to use a customized `config.json`, you can follow the steps in [Basic Usage](https://docs.webp.sh/usage/basic-usage/) to genereate one, and mount it into the container's `/etc/config.json`, example `docker-compose.yml` as follows: +If you'd like to use a customized `config.json`, you can follow the steps in [Configuration](https://docs.webp.sh/usage/configuration/) to genereate one, and mount it into the container's `/etc/config.json`, example `docker-compose.yml` as follows: ```yml version: '3'