Skip to content

Commit bb15961

Browse files
author
Greg Bowler
authored
feature: send csrf tokens in the header (#573)
* feature: send csrf tokens in the header closes #572 * ci: php 8.1 * ci: php 8.1 * ci: php 8.1
1 parent 9fd1942 commit bb15961

File tree

4 files changed

+363
-105
lines changed

4 files changed

+363
-105
lines changed

.github/workflows/ci.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,24 @@ jobs:
77
runs-on: ubuntu-latest
88

99
steps:
10-
- uses: actions/checkout@v2
10+
- uses: actions/checkout@v3
1111

1212
- name: Cache Composer dependencies
13-
uses: actions/cache@v2
13+
uses: actions/cache@v3
1414
with:
1515
path: /tmp/composer-cache
1616
key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }}
1717

18-
- uses: php-actions/composer@v6
18+
- name: Composer
19+
uses: php-actions/composer@v6
20+
with:
21+
php_version: 8.1
1922

2023
- name: Archive build
2124
run: mkdir /tmp/github-actions/ && tar -cvf /tmp/github-actions/build.tar ./
2225

2326
- name: Upload build archive for test runners
24-
uses: actions/upload-artifact@v2
27+
uses: actions/upload-artifact@v3
2528
with:
2629
name: build-artifact
2730
path: /tmp/github-actions
@@ -52,7 +55,7 @@ jobs:
5255
needs: [composer]
5356

5457
steps:
55-
- uses: actions/download-artifact@v2
58+
- uses: actions/download-artifact@v3
5659
with:
5760
name: build-artifact
5861
path: /tmp/github-actions
@@ -64,3 +67,4 @@ jobs:
6467
uses: php-actions/phpstan@v3
6568
with:
6669
path: src/
70+
php_version: 8.1

composer.json

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,26 @@
1414
"ext-json": "*",
1515
"php": ">=8.1",
1616

17-
"phpgt/config": "^v1.0",
17+
"phpgt/config": "^1.0",
18+
"phpgt/csrf": "^v1.9",
1819
"phpgt/dom": "^v4.0",
1920
"phpgt/domtemplate": "^v3.1",
20-
"phpgt/database": "^v1.4",
21-
"phpgt/http": "^v1.1",
22-
"phpgt/logger": "^v1.0",
23-
"phpgt/protectedglobal": "^v1.0",
24-
"phpgt/routing": "^v1.0",
25-
"phpgt/servicecontainer": "^v1.1",
26-
"phpgt/session": "^v1.1",
27-
"phpgt/sync": "^v1.2",
21+
"phpgt/database": "^1.4",
22+
"phpgt/http": "^1.1",
23+
"phpgt/logger": "^1.0",
24+
"phpgt/routing": "^1.0",
25+
"phpgt/servicecontainer": "^1.1",
26+
"phpgt/session": "^1.1",
27+
"phpgt/sync": "^1.2",
2828
"phpgt/ulid": "^v1.0.0",
2929

3030
"psr/http-server-middleware": "^1.0",
3131
"willdurand/negotiation": "^3.0"
3232
},
3333

3434
"require-dev": {
35-
"phpstan/phpstan": "^v1.8",
36-
"phpunit/phpunit": "^v9.5"
35+
"phpstan/phpstan": "v1.8.0",
36+
"phpunit/phpunit": "v9.5.21"
3737
},
3838

3939
"autoload": {

0 commit comments

Comments
 (0)