Skip to content

Commit 9f111a6

Browse files
authored
Merge pull request #170 from reload/updates
Updates and cleanup
2 parents 89c39b5 + 2b8002a commit 9f111a6

File tree

11 files changed

+276
-463
lines changed

11 files changed

+276
-463
lines changed

.github/CODEOWNERS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
* @reload/developers

.github/dependabot.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
version: 2
22

33
updates:
4+
- package-ecosystem: composer
5+
directory: "/"
6+
schedule:
7+
interval: daily
8+
timezone: Europe/Copenhagen
9+
reviewers:
10+
- "reload/developers"
411
- package-ecosystem: github-actions
512
directory: "/"
613
schedule:

.github/workflows/pull_request.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
- name: Setup PHP, with composer and extensions
1010
uses: shivammathur/setup-php@master
1111
with:
12-
php-version: 7.4
12+
php-version: 8.1
1313
coverage: none
1414
- name: Install Reviewdog
1515
run: |
@@ -31,7 +31,7 @@ jobs:
3131
- name: Setup PHP, with composer and extensions
3232
uses: shivammathur/setup-php@master
3333
with:
34-
php-version: 7.4
34+
php-version: 8.1
3535
coverage: none
3636
- name: Install Reviewdog
3737
run: |

.phpcs.xml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
<?xml version="1.0"?>
22
<ruleset>
33
<file>./src</file>
4-
<file>./tests</file>
5-
<config name="installed_paths" value="../../appocular/coding-standard"/>
6-
<rule ref="AppocularCodingStandard"/>
7-
<rule ref="SlevomatCodingStandard.Files.TypeNameMatchesFileName">
8-
<properties>
9-
<!-- Tell Slevomat the root directories of our namespaces, so
10-
it can check if the filepath is correct. -->
11-
<property name="rootNamespaces" type="array">
12-
<element key="src" value="GitHubSecurityJira"/>
13-
<element key="tests" value="GitHubSecurityJira"/>
14-
</property>
15-
</properties>
16-
</rule>
4+
<rule ref="PSR12"/>
175
</ruleset>

Dockerfile

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -----------------
2-
FROM composer:2.3 AS build-env
2+
FROM composer:2.4.1 AS build-env
33

44
COPY . /opt/ghsec-jira/
55

@@ -8,7 +8,7 @@ WORKDIR /opt/ghsec-jira
88
RUN composer install --prefer-dist --no-dev
99

1010
# -----------------
11-
FROM php:8.0.1-alpine
11+
FROM php:8.1.9-alpine
1212

1313
COPY --from=build-env /opt/ghsec-jira/ /opt/ghsec-jira/
1414

composer.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"description": "Create Jira tickets for GitHub security alerts",
44
"license": "MIT",
55
"require": {
6-
"php": ">=7.2.0",
6+
"php": ">=8.1",
77
"softonic/graphql-client": "^1.2",
88
"symfony/console": "^5",
99
"symfony/yaml": "^5.0",
@@ -21,7 +21,12 @@
2121
}
2222
},
2323
"require-dev": {
24-
"appocular/coding-standard": "^1.0",
25-
"phpstan/phpstan": "^0.12.5"
24+
"phpstan/phpstan": "^1",
25+
"squizlabs/php_codesniffer": "^3.7"
26+
},
27+
"config": {
28+
"allow-plugins": {
29+
"dealerdirect/phpcodesniffer-composer-installer": true
30+
}
2631
}
2732
}

0 commit comments

Comments
 (0)