Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd670878

Browse files
committed
Specify explicitcontents: read workflow permissions
Three CI workflows that need only `contents: read` permissions andno other permissions did not have explicit permissions set, andwould therefore be given permissions configured for the repository.It is recommended to set explicit workflow permissions. This doesso, bringing those workflows inline with `pythonpackage.yml` (whichhad this), and closing three `actions/missing-workflow-permissions`CodeQL alerts (new since#2032 enabled scanning of GHA workflows).See also:https://codeql.github.com/codeql-query-help/actions/actions-missing-workflow-permissions/
1 parent2e4a0d2 commitd670878

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

‎.github/workflows/alpine-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: test-alpine
22

33
on:[push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents:read
7+
58
jobs:
69
test:
710
runs-on:ubuntu-latest

‎.github/workflows/cygwin-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: test-cygwin
22

33
on:[push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents:read
7+
58
jobs:
69
test:
710
runs-on:windows-latest

‎.github/workflows/lint.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Lint
22

33
on:[push, pull_request, workflow_dispatch]
44

5+
permissions:
6+
contents:read
7+
58
jobs:
69
lint:
710
runs-on:ubuntu-latest

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp