diff options
| author | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2026-10-21 10:47:20 +0300 |
|---|---|---|
| committer | github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> | 2026-10-21 10:47:20 +0300 |
| commit | ef1858fb634ce4c6be76c57e91f1e0501566ea66 (patch) | |
| tree | d64409d0eeea9ebe27faac92b3fff5c45287546f /.github/workflows | |
| parent | debian: v2.1.12-3 (diff) | |
| parent | workflows/ci: try asking for token permissions (diff) | |
| download | config-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.yml | 42 |
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 |
