Skip to content

Commit e0eec4d

Browse files
committed
Remove workflow permissions and require secrets.PAT for Dependabot workflow tokens
1 parent 9e2a268 commit e0eec4d

1 file changed

Lines changed: 2 additions & 9 deletions

File tree

.github/workflows/copilot-dependabot-update.yml

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

7-
permissions:
8-
contents: read
9-
pull-requests: write
10-
issues: write
11-
repository-projects: write
12-
137
jobs:
148
dependabot-analysis:
159
runs-on: ubuntu-latest
@@ -18,21 +12,20 @@ jobs:
1812
- name: Checkout repository
1913
uses: actions/checkout@v4
2014
with:
21-
token: ${{ secrets.PAT || github.token }}
2215
fetch-depth: 0
2316

2417
- name: Fetch Dependabot metadata
2518
id: metadata
2619
uses: dependabot/fetch-metadata@v2
2720
with:
28-
github-token: ${{ secrets.PAT || github.token }}
21+
github-token: ${{ secrets.PAT }}
2922

3023
- name: Generate dependency analysis with Copilot
3124
uses: austenstone/copilot-cli-actions/.github/actions/copilot@main
3225
env:
3326
CONTEXT7_API_KEY: ${{ secrets.CONTEXT7_API_KEY }}
3427
with:
35-
github-token: ${{ secrets.PAT || github.token }}
28+
github-token: ${{ secrets.PAT }}
3629
mcp-config: |
3730
{
3831
"mcpServers": {

0 commit comments

Comments
 (0)