From 9edd16ed034e394d196a3f56c4136c21b81c5979 Mon Sep 17 00:00:00 2001 From: Arthri <41360489+a@users.noreply.github.com> Date: Wed, 9 Apr 2025 06:12:34 +0000 Subject: [PATCH 1/2] Reduce duplication in README --- README.md | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/README.md b/README.md index 068467e..ad3364f 100644 --- a/README.md +++ b/README.md @@ -22,14 +22,6 @@ jobs: ### Machine The workflow, by default, runs on Ubuntu 24.04 (as of April 09, 2025). The machine that the workflow runs on can be changed by using the `runs-on` input parameter. ```yml -name: Continuous Integration - -on: - push: - branches: [ master, dev ] - pull_request: - branches: [ master, dev ] - jobs: format: uses: Arthri/format-dotnet/.github/workflows/i.yml@v1 @@ -43,14 +35,6 @@ The workflow uses [actions/setup-dotnet](https://github.com/actions/setup-dotnet ### Timeout The workflow has a default timeout of 5 minutes, which can be changed by setting the `timeout-minutes` input parameter. ```yml -name: Continuous Integration - -on: - push: - branches: [ master, dev ] - pull_request: - branches: [ master, dev ] - jobs: format: uses: Arthri/format-dotnet/.github/workflows/i.yml@v1 @@ -62,14 +46,6 @@ jobs: ### Additional Arguments Additional arguments can be passed to the `dotnet format` command using the `format-arguments` input parameter. ```yml -name: Continuous Integration - -on: - push: - branches: [ master, dev ] - pull_request: - branches: [ master, dev ] - jobs: format: uses: Arthri/format-dotnet/.github/workflows/i.yml@v1 From da31a0fa7ca36fa2406bc3b838d7194b089a480e Mon Sep 17 00:00:00 2001 From: Arthri <41360489+a@users.noreply.github.com> Date: Wed, 9 Apr 2025 06:12:49 +0000 Subject: [PATCH 2/2] Explicitly specify permissions --- README.md | 2 ++ 1 file changed, 2 insertions(+) diff --git a/README.md b/README.md index ad3364f..f22fe10 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,8 @@ on: jobs: format: uses: Arthri/format-dotnet/.github/workflows/i.yml@v1 + permissions: + contents: read ``` ## Usage