A free, self-hostable news aggregator…
Add zizmor workflow for action security checks (#9228)
Inverle6625137a8e9e
diff --git a/.github/dependabot.yml b/.github/dependabot.ymlindex 380cfdf78..d01b4045d 100644--- a/.github/dependabot.yml+++ b/.github/dependabot.yml@@ -6,10 +6,14 @@ updates:directory: "/"schedule:interval: "monthly"+ cooldown:+ default-days: 7- package-ecosystem: "npm"directory: "/"schedule:interval: "monthly"+ cooldown:+ default-days: 7groups:eslint:patterns:@@ -23,7 +27,11 @@ updates:directory: "/"schedule:interval: "monthly"+ cooldown:+ default-days: 7- package-ecosystem: "composer"directory: "/lib/"schedule:interval: "monthly"+ cooldown:+ default-days: 7diff --git a/.github/workflows/docker-publish.yml b/.github/workflows/docker-publish.ymlindex 4c93f4a9d..0712a4f26 100644--- a/.github/workflows/docker-publish.yml+++ b/.github/workflows/docker-publish.yml@@ -8,14 +8,21 @@ on:types: [published]workflow_dispatch:-permissions:- contents: read- packages: write+# To ensure that if the latest push finishes faster than an earlier run, the previous run won't+# overwrite it later. (by queueing the runs)+concurrency:+ group: docker-publish-${{ github.ref_name }} # e.g. docker-publish-edge, docker-publish-latest, docker-publish-1.29.1+ cancel-in-progress: false++permissions: {}jobs:build-container-image:name: Build Docker image ${{ matrix.name }}runs-on: ubuntu-latest+ permissions:+ contents: read+ packages: write # For uploading to the GitHub container registry (ghcr.io)strategy:matrix:include:@@ -47,6 +54,8 @@ jobs:- name: Checkoutuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false- name: Get FreshRSS versionrun: |diff --git a/.github/workflows/dockerhub-description.yml b/.github/workflows/dockerhub-description.ymlindex ced6383d0..22781b490 100644--- a/.github/workflows/dockerhub-description.yml+++ b/.github/workflows/dockerhub-description.yml@@ -11,12 +11,19 @@ on:permissions:contents: read+concurrency:+ group: update-dockerhub-description+ cancel-in-progress: false # Queue the description updates+jobs:dockerhub-description:+ name: dockerhub-descriptionif: github.repository_owner == 'FreshRSS'runs-on: ubuntu-lateststeps:- uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false- name: Update repo descriptionuses: peter-evans/dockerhub-description@1b9a80c056b620d92cedb9d9b5a223409c68ddfadiff --git a/.github/workflows/jekyll-gh-pages.yml b/.github/workflows/jekyll-gh-pages.ymlindex 984d35bea..71b73291e 100644--- a/.github/workflows/jekyll-gh-pages.yml+++ b/.github/workflows/jekyll-gh-pages.yml@@ -11,11 +11,7 @@ on:# Allows you to run this workflow manually from the Actions tabworkflow_dispatch:-# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages-permissions:- contents: read- pages: write- id-token: write+permissions: {}# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.@@ -26,10 +22,16 @@ concurrency:jobs:# Build jobbuild:+ name: buildruns-on: ubuntu-latest+ permissions:+ contents: read+ pages: write # For preparing the page deploymentsteps:- name: Checkoutuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false- name: Setup Rubyuses: ruby/setup-ruby@95ef2b042f9d7a56d8268cba8559e2842e2ad01bwith:@@ -48,10 +50,14 @@ jobs:# Deployment jobdeploy:+ name: deployenvironment:name: github-pagesurl: ${{ steps.deployment.outputs.page_url }}runs-on: ubuntu-latest+ permissions:+ pages: write # For deploying the page+ id-token: write # For authorizing the deploymentneeds: buildsteps:- name: Deploy to GitHub Pagesdiff --git a/.github/workflows/tests.yml b/.github/workflows/tests.ymlindex 857c657d3..bf57785a8 100644--- a/.github/workflows/tests.yml+++ b/.github/workflows/tests.yml@@ -9,15 +9,22 @@ on:permissions:contents: read+concurrency:+ group: tests-${{ github.ref }}+ cancel-in-progress: true+jobs:tests:+ name: tests# https://github.com/actions/virtual-environmentsruns-on: ubuntu-26.04steps:- name: Git checkout source codeuses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false# Composer testsdiff --git a/.github/workflows/zizmor.yml b/.github/workflows/zizmor.ymlnew file mode 100644index 000000000..721f38f57--- /dev/null+++ b/.github/workflows/zizmor.yml@@ -0,0 +1,30 @@+name: Zizmor CI++on:+ push:+ branches: [ edge ]+ pull_request:+ branches: [ edge ]++permissions: {}++concurrency:+ group: zizmor-${{ github.ref }}+ cancel-in-progress: true++jobs:+ zizmor:+ name: zizmor+ runs-on: ubuntu-26.04+ permissions:+ security-events: write # So that the findings can be listed in the "Security" tab under the "Code scanning" section+ steps:+ - name: Checkout repository+ uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1+ with:+ persist-credentials: false++ - name: Run zizmor 🌈+ uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2+ with:+ persona: pedantic # https://docs.zizmor.sh/usage/#using-personas