mirror of
https://github.com/nextcloud/server.git
synced 2026-03-04 18:28:08 +01:00
Bumps the github-actions group with 5 updates: | Package | From | To | | --- | --- | --- | | [github/codeql-action](https://github.com/github/codeql-action) | `4.32.2` | `4.32.4` | | [cypress-io/github-action](https://github.com/cypress-io/github-action) | `7.1.2` | `7.1.5` | | [actions/upload-artifact](https://github.com/actions/upload-artifact) | `6.0.0` | `7.0.0` | | [LizardByte/actions](https://github.com/lizardbyte/actions) | `2026.212.22356` | `2026.227.200013` | | [actions/stale](https://github.com/actions/stale) | `10.1.1` | `10.2.0` | Updates `github/codeql-action` from 4.32.2 to 4.32.4 - [Release notes](https://github.com/github/codeql-action/releases) - [Changelog](https://github.com/github/codeql-action/blob/main/CHANGELOG.md) - [Commits](45cbd0c69e...89a39a4e59) Updates `cypress-io/github-action` from 7.1.2 to 7.1.5 - [Release notes](https://github.com/cypress-io/github-action/releases) - [Changelog](https://github.com/cypress-io/github-action/blob/master/CHANGELOG.md) - [Commits](84d178e4bb...bc22e01685) Updates `actions/upload-artifact` from 6.0.0 to 7.0.0 - [Release notes](https://github.com/actions/upload-artifact/releases) - [Commits](b7c566a772...bbbca2ddaa) Updates `LizardByte/actions` from 2026.212.22356 to 2026.227.200013 - [Release notes](https://github.com/lizardbyte/actions/releases) - [Commits](9bf3ef7837...70bb8d394d) Updates `actions/stale` from 10.1.1 to 10.2.0 - [Release notes](https://github.com/actions/stale/releases) - [Changelog](https://github.com/actions/stale/blob/main/CHANGELOG.md) - [Commits](997185467f...b5d41d4e1d) --- updated-dependencies: - dependency-name: github/codeql-action dependency-version: 4.32.4 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: cypress-io/github-action dependency-version: 7.1.5 dependency-type: direct:production update-type: version-update:semver-patch dependency-group: github-actions - dependency-name: actions/upload-artifact dependency-version: 7.0.0 dependency-type: direct:production update-type: version-update:semver-major dependency-group: github-actions - dependency-name: LizardByte/actions dependency-version: 2026.227.200013 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions - dependency-name: actions/stale dependency-version: 10.2.0 dependency-type: direct:production update-type: version-update:semver-minor dependency-group: github-actions ... Signed-off-by: dependabot[bot] <support@github.com>
154 lines
4.6 KiB
YAML
154 lines
4.6 KiB
YAML
# SPDX-FileCopyrightText: 2020 Nextcloud GmbH and Nextcloud contributors
|
|
# SPDX-License-Identifier: MIT
|
|
name: Psalm static code analysis
|
|
|
|
on:
|
|
pull_request:
|
|
push:
|
|
branches:
|
|
- main
|
|
- master
|
|
- stable*
|
|
paths:
|
|
- '.github/workflows/static-code-analysis.yml'
|
|
- '**.php'
|
|
|
|
permissions:
|
|
contents: read
|
|
|
|
concurrency:
|
|
group: static-code-analysis-${{ github.head_ref || github.run_id }}
|
|
cancel-in-progress: true
|
|
|
|
jobs:
|
|
static-code-analysis:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #v2.36.0
|
|
timeout-minutes: 5
|
|
with:
|
|
php-version: '8.2'
|
|
extensions: apcu,ctype,curl,dom,fileinfo,ftp,gd,imagick,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
|
coverage: none
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Composer install
|
|
run: composer i
|
|
|
|
- name: Psalm
|
|
run: composer run psalm -- --threads=1 --monochrome --no-progress --output-format=github --update-baseline
|
|
|
|
- name: Show potential changes in Psalm baseline
|
|
if: always()
|
|
run: git diff --exit-code -- . ':!lib/composer'
|
|
|
|
static-code-analysis-security:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.repository_owner != 'nextcloud-gmbh' }}
|
|
|
|
permissions:
|
|
security-events: write
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #v2.36.0
|
|
timeout-minutes: 5
|
|
with:
|
|
php-version: '8.2'
|
|
extensions: ctype,curl,dom,fileinfo,ftp,gd,imagick,intl,json,ldap,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
|
coverage: none
|
|
|
|
- name: Composer install
|
|
run: composer i
|
|
|
|
- name: Psalm taint analysis
|
|
run: composer run psalm:security -- --threads=1 --monochrome --no-progress --output-format=github --update-baseline --report=results.sarif
|
|
|
|
- name: Show potential changes in Psalm baseline
|
|
if: always()
|
|
run: git diff --exit-code -- . ':!lib/composer'
|
|
|
|
- name: Upload Security Analysis results to GitHub
|
|
if: always()
|
|
uses: github/codeql-action/upload-sarif@89a39a4e59826350b863aa6b6252a07ad50cf83e # v3
|
|
with:
|
|
sarif_file: results.sarif
|
|
|
|
static-code-analysis-ocp:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #v2.36.0
|
|
timeout-minutes: 5
|
|
with:
|
|
php-version: '8.2'
|
|
extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
|
coverage: none
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Composer install
|
|
run: composer i
|
|
|
|
- name: Psalm
|
|
run: composer run psalm:ocp -- --threads=1 --monochrome --no-progress --output-format=github --update-baseline
|
|
|
|
- name: Show potential changes in Psalm baseline
|
|
if: always()
|
|
run: git diff --exit-code -- . ':!lib/composer'
|
|
|
|
static-code-analysis-ncu:
|
|
runs-on: ubuntu-latest
|
|
|
|
if: ${{ github.event_name != 'push' && github.repository_owner != 'nextcloud-gmbh' }}
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8
|
|
with:
|
|
persist-credentials: false
|
|
submodules: true
|
|
|
|
- name: Set up php
|
|
uses: shivammathur/setup-php@44454db4f0199b8b9685a5d763dc37cbf79108e1 #v2.36.0
|
|
timeout-minutes: 5
|
|
with:
|
|
php-version: '8.2'
|
|
extensions: ctype,curl,dom,fileinfo,gd,imagick,intl,json,mbstring,openssl,pdo_sqlite,posix,sqlite,xml,zip
|
|
coverage: none
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
|
|
- name: Composer install
|
|
run: composer i
|
|
|
|
- name: Psalm
|
|
run: composer run psalm:ncu -- --threads=1 --monochrome --no-progress --output-format=github
|