Skip to content

Commit fd085c9

Browse files
fix: GitHub Actions permissions and README display issue
- Add explicit permissions to workflows for PR operations - contents: read - pull-requests: write - issues: write - Rename .github/README.md to .github/WORKFLOWS.md This fixes GitHub showing wrong README on repository home page Fixes: - 'Resource not accessible by integration' error - Wrong README displaying on main repo page
1 parent 3d7bc73 commit fd085c9

File tree

3 files changed

+14
-1
lines changed

3 files changed

+14
-1
lines changed
Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
# GitHub Actions CI/CD
1+
# GitHub Actions & CI/CD Workflows
2+
3+
> **📖 Documentation for CI/CD workflows and automation**
4+
> For the main project README, see: [../README.md](../README.md)
25
36
This folder contains automated workflows for continuous integration and deployment.
47

.github/workflows/dotnet-ci.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ master, main ]
88

9+
permissions:
10+
contents: read
11+
pull-requests: write
12+
issues: write
13+
914
env:
1015
DOTNET_VERSION: '9.0.x'
1116

.github/workflows/pr-checks.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@ on:
44
pull_request:
55
types: [opened, synchronize, reopened]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
issues: write
11+
712
jobs:
813
pr-title-check:
914
name: PR Title Check

0 commit comments

Comments
 (0)