diff --git a/.github/workflows/pr-lint.yml b/.github/workflows/pr-lint.yml index dc7af3d3..f954fec9 100644 --- a/.github/workflows/pr-lint.yml +++ b/.github/workflows/pr-lint.yml @@ -3,8 +3,14 @@ on: pull_request_target: types: [ opened, edited, synchronize, reopened ] +permissions: + contents: read + jobs: validate: + permissions: + pull-requests: read # for amannn/action-semantic-pull-request to analyze PRs + statuses: write # for amannn/action-semantic-pull-request to mark status of analyzed PR name: Validate title runs-on: ubuntu-latest steps: diff --git a/.github/workflows/test-and-deploy.yml b/.github/workflows/test-and-deploy.yml index b8d847f2..e117ccd2 100644 --- a/.github/workflows/test-and-deploy.yml +++ b/.github/workflows/test-and-deploy.yml @@ -78,6 +78,8 @@ jobs: DD_API_KEY: ${{ secrets.DATADOG_API_KEY }} notify-on-failure: + permissions: + contents: none name: Slack notify on failure if: failure() && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || github.ref_type == 'tag') needs: [ test, deploy ] diff --git a/.github/workflows/update-dependencies.yml b/.github/workflows/update-dependencies.yml index eea77a93..0f27fb93 100644 --- a/.github/workflows/update-dependencies.yml +++ b/.github/workflows/update-dependencies.yml @@ -36,6 +36,8 @@ jobs: message: 'chore: update sendgrid-java dependencies' notify-on-failure: + permissions: + contents: none name: Slack notify on failure if: failure() needs: [ update-dependencies-and-test ]