aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/.github/workflows
diff options
context:
space:
mode:
authorgithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2026-10-21 10:47:20 +0300
committergithub-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>2026-10-21 10:47:20 +0300
commitef1858fb634ce4c6be76c57e91f1e0501566ea66 (patch)
treed64409d0eeea9ebe27faac92b3fff5c45287546f /.github/workflows
parentdebian: v2.1.12-3 (diff)
parentworkflows/ci: try asking for token permissions (diff)
downloadconfig-links-ef1858fb634ce4c6be76c57e91f1e0501566ea66.tar.gz
config-links-ef1858fb634ce4c6be76c57e91f1e0501566ea66.zip
Merge tag 'v2.1.17' into debian
v2.1.17
Diffstat (limited to '.github/workflows')
-rw-r--r--.github/workflows/ci.yml42
1 files changed, 31 insertions, 11 deletions
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index df69ff6..c1c6e02 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -4,19 +4,36 @@ on:
push:
workflow_dispatch:
+permissions: {}
+
jobs:
+ lint:
+ name: Linting
+ runs-on: ubuntu-slim
+ permissions:
+ security-events: write
+ steps:
+ - name: Checkout
+ uses: actions/checkout@v7
+ with:
+ persist-credentials: false
+ - name: Run zizmor
+ uses: zizmorcore/zizmor-action@v0.7.1
+
test_local:
strategy:
matrix:
- os: [ubuntu-latest, macos-latest]
- runs-on: '${{ matrix.os }}'
- name: 'Test / ${{ matrix.os }}'
+ os:
+ - ubuntu-latest
+ - macos-latest
+ runs-on: ${{ matrix.os }}
+ name: Test / ${{ matrix.os }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
+ persist-credentials: false
submodules: recursive
-
- name: Install dependencies
run: |
brew install bash coreutils findutils
@@ -25,7 +42,6 @@ jobs:
if: runner.os == 'macOS'
# Is it even macOS anymore? It is for me. I really am too lazy to deal
# with ancient utilities that come with the actual macOS.
-
- name: Test
run: make test
@@ -41,18 +57,21 @@ jobs:
- noble
- resolute
runs-on: ubuntu-latest
- name: 'Test / Docker / ${{ matrix.distro }}'
+ name: Test / Docker / ${{ matrix.distro }}
steps:
- name: Checkout
uses: actions/checkout@v7
with:
+ persist-credentials: false
submodules: recursive
- name: Test
- run: make 'test/docker/${{ matrix.distro }}'
+ run: |
+ make 'test/docker/${{ matrix.distro }}'
aur:
name: Publish to AUR
needs:
+ - lint
- test_local
- test_docker
runs-on: ubuntu-latest
@@ -61,9 +80,8 @@ jobs:
&& !startsWith(github.ref, 'refs/tags/debian/')
container:
image: archlinux:base-devel
- env:
- SSH_KEY: |
- ${{ secrets.SSH_KEY }}
+ permissions:
+ contents: write
steps:
# This step must be done before actions/checkout. From the latter's
# output:
@@ -76,9 +94,11 @@ jobs:
- name: Checkout
uses: actions/checkout@v7
with:
+ persist-credentials: true
ref: aur
submodules: recursive
- token: '${{ secrets.GH_TOKEN }}'
- name: Run maintenance
+ env:
+ SSH_KEY: ${{ secrets.SSH_KEY }}
run: |
make -C "$GITHUB_WORKSPACE" ci