Skip to content

Update ci-latest-release.yml #2

Update ci-latest-release.yml

Update ci-latest-release.yml #2

name: ci-systemd-release
on:
push:
tags:
- "*"
# Declare default permissions as read only.
permissions: read-all
jobs:
goreleaser:
runs-on: ubuntu-20.04
if: github.repository == 'kubearmor/kubearmor'
steps:
- uses: actions/checkout@v3
with:
submodules: true
- uses: actions/setup-go@v3
with:
go-version: "v1.20"
- name: Install the latest LLVM toolchain
run: ./.github/workflows/install-llvm.sh
- name: Compile libbpf
run: ./.github/workflows/install-libbpf.sh
- name: Install karmor
run: curl -sfL https://raw.githubusercontent.com/kubearmor/kubearmor-client/main/install.sh | sudo sh -s -- -b .
working-directory: KubeArmor
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
permissions:

Check failure on line 36 in .github/workflows/ci-systemd-release.yml

View workflow run for this annotation

GitHub Actions / ci-systemd-release

Invalid workflow file

The workflow is not valid. .github/workflows/ci-systemd-release.yml (Line: 36, Col: 9): Unexpected value 'permissions'
contents: write
with:
distribution: goreleaser
version: v1.12.2
args: release --rm-dist
workdir: KubeArmor
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}