Use GITHUB_TOKEN to run GitHub Actions
This commit is contained in:
committed by
Frédéric Guillot
parent
59a4c7f73b
commit
2f50892c07
4
.github/workflows/docker.yml
vendored
4
.github/workflows/docker.yml
vendored
@@ -22,6 +22,8 @@ jobs:
|
||||
push: false
|
||||
|
||||
multiplatform-build:
|
||||
permissions:
|
||||
packages: write
|
||||
if: ${{ ! github.event.pull_request }}
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
@@ -64,7 +66,7 @@ jobs:
|
||||
with:
|
||||
registry: ghcr.io
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Login to Quay.io Registry
|
||||
uses: docker/login-action@v2
|
||||
|
||||
9
.github/workflows/integration_tests.yml
vendored
9
.github/workflows/integration_tests.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
permissions:
|
||||
packages: read
|
||||
|
||||
jobs:
|
||||
Sqlite:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,7 +14,7 @@ jobs:
|
||||
image: ghcr.io/kanboard/tests:latest
|
||||
credentials:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Validate composer.json and composer.lock
|
||||
@@ -36,7 +39,7 @@ jobs:
|
||||
image: ghcr.io/kanboard/tests:latest
|
||||
credentials:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.4
|
||||
@@ -78,7 +81,7 @@ jobs:
|
||||
image: ghcr.io/kanboard/tests:latest
|
||||
credentials:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
services:
|
||||
mysql:
|
||||
image: mysql:5.7
|
||||
|
||||
7
.github/workflows/unit_tests.yml
vendored
7
.github/workflows/unit_tests.yml
vendored
@@ -4,6 +4,9 @@ on:
|
||||
pull_request:
|
||||
branches: [ main ]
|
||||
|
||||
permissions:
|
||||
packages: read
|
||||
|
||||
jobs:
|
||||
Sqlite:
|
||||
runs-on: ubuntu-latest
|
||||
@@ -11,7 +14,7 @@ jobs:
|
||||
image: ghcr.io/kanboard/tests:latest
|
||||
credentials:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Validate composer.json and composer.lock
|
||||
@@ -27,7 +30,7 @@ jobs:
|
||||
image: ghcr.io/kanboard/tests:latest
|
||||
credentials:
|
||||
username: ${{ github.repository_owner }}
|
||||
password: ${{ secrets.CR_PAT }}
|
||||
password: ${{ secrets.GITHUB_TOKEN }}
|
||||
services:
|
||||
postgres:
|
||||
image: postgres:9.4
|
||||
|
||||
Reference in New Issue
Block a user