diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000000..43e1e1f97d --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,26 @@ +version: 2 +updates: + - package-ecosystem: composer + directory: / + schedule: + interval: weekly + groups: + composer: + patterns: + - "*" + - package-ecosystem: npm + directory: / + schedule: + interval: weekly + groups: + npm: + patterns: + - "*" + - package-ecosystem: github-actions + directory: / + schedule: + interval: weekly + groups: + actions: + patterns: + - "*" diff --git a/.github/workflows/security-audit.yaml b/.github/workflows/security-audit.yaml new file mode 100644 index 0000000000..3257ea6582 --- /dev/null +++ b/.github/workflows/security-audit.yaml @@ -0,0 +1,40 @@ +name: Security Audit + +on: + pull_request: + branches: + - "**" + schedule: + - cron: "0 6 * * 1" + +jobs: + composer-audit: + name: Composer Audit + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v6 + + - name: Setup PHP + uses: shivammathur/setup-php@v2 + with: + php-version: "8.5" + tools: composer:v2 + coverage: none + + - name: Composer Audit + run: composer audit --locked --no-interaction + + yarn-audit: + name: Yarn Audit + runs-on: ubuntu-latest + steps: + - name: Code Checkout + uses: actions/checkout@v6 + + - name: Yarn Audit + # Yarn classic's exit code is a bitmask (8 = high, 16 = critical); + # --level only filters the output, so mask the code to match it. + run: | + yarn audit --level high || code=$? + exit $(( ${code:-0} & 24 ? 1 : 0 )) diff --git a/security.md b/security.md index b361cf30c3..4b2e8d758e 100644 --- a/security.md +++ b/security.md @@ -2,7 +2,7 @@ ## Supported Versions -While Pelican is in beta, we only provide security fixes for the most recent beta release. Older beta releases are unsupported. +We only provide security fixes for the most recent release. Older releases are unsupported; upgrade to receive fixes. ![](https://img.shields.io/github/v/release/pelican/panel?label=latest-release) ## Reporting a Vulnerability