Skip to content

Commit 6686e27

Browse files
committed
Define default workflow permissions
1 parent dc6b52f commit 6686e27

File tree

2 files changed

+7
-18
lines changed

2 files changed

+7
-18
lines changed

.github/workflows/php.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:
@@ -9,6 +12,7 @@ on:
912
- v[0-9]+.[0-9]+.[0-9]+
1013
pull_request:
1114
workflow_dispatch:
15+
1216
jobs:
1317
test:
1418
runs-on: ubuntu-latest

.github/workflows/phpmd.yml

Lines changed: 3 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,8 @@
1-
# This workflow uses actions that are not certified by GitHub.
2-
# They are provided by a third-party and are governed by
3-
# separate terms of service, privacy policy, and support
4-
# documentation.
5-
# PHPMD is a spin-off project of PHP Depend and
6-
# aims to be a PHP equivalent of the well known Java tool PMD.
7-
# What PHPMD does is: It takes a given PHP source code base
8-
# and look for several potential problems within that source.
9-
# These problems can be things like:
10-
# Possible bugs
11-
# Suboptimal code
12-
# Overcomplicated expressions
13-
# Unused parameters, methods, properties
14-
# More details at https://phpmd.org/
15-
161
name: PHPMD
172

3+
permissions:
4+
contents: read
5+
186
on:
197
push:
208
branches: [ "develop" ]
@@ -24,9 +12,6 @@ on:
2412
schedule:
2513
- cron: '26 2 * * 0'
2614

27-
permissions:
28-
contents: read
29-
3015
jobs:
3116
PHPMD:
3217
name: Run PHPMD scanning

0 commit comments

Comments
 (0)