From 2cca297b55931938a06705c87c9a719f91480b9a Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Sat, 3 Aug 2024 22:00:53 +0100 Subject: [PATCH 1/3] Add workflow to lint workflows with Actionlint Signed-off-by: JP Lomas --- .github/workflows/actionlint.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 .github/workflows/actionlint.yml diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml new file mode 100644 index 000000000..ff07663b8 --- /dev/null +++ b/.github/workflows/actionlint.yml @@ -0,0 +1,17 @@ +name: Lint GitHub workflows + +on: [push, pull_request] + +jobs: + lint: + runs-on: ubuntu-latest + steps: + - name: Checkout code + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + + - name: Install Actionlint + run: | + curl -sSL https://github.com/rhysd/actionlint/releases/download/v1.7.1/actionlint_1.7.1_linux_amd64.tar.gz | tar -xz -C /usr/local/bin + + - name: Run Actionlint + run: actionlint From 0d18c0e8bb6915e15c29d82420b4f6c32ddacd2d Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Sat, 3 Aug 2024 22:27:34 +0100 Subject: [PATCH 2/3] Add oqs-arm64 runner label to actionlint config Signed-off-by: JP Lomas --- .github/actionlint.yaml | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .github/actionlint.yaml diff --git a/.github/actionlint.yaml b/.github/actionlint.yaml new file mode 100644 index 000000000..46b09d85e --- /dev/null +++ b/.github/actionlint.yaml @@ -0,0 +1,7 @@ +self-hosted-runner: + # Labels of self-hosted runner in array of strings. + labels: [oqs-arm64] +# Configuration variables in array of strings defined in your repository or +# organization. `null` means disabling configuration variables check. +# Empty array means no configuration variable is allowed. +config-variables: null From 267c95ea3713c931c9511aadd0ee7361a9236156 Mon Sep 17 00:00:00 2001 From: JP Lomas Date: Sat, 3 Aug 2024 22:44:37 +0100 Subject: [PATCH 3/3] Run Actionlint without shellcheck in workflow Signed-off-by: JP Lomas --- .github/workflows/actionlint.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/actionlint.yml b/.github/workflows/actionlint.yml index ff07663b8..a47c5445b 100644 --- a/.github/workflows/actionlint.yml +++ b/.github/workflows/actionlint.yml @@ -14,4 +14,4 @@ jobs: curl -sSL https://github.com/rhysd/actionlint/releases/download/v1.7.1/actionlint_1.7.1_linux_amd64.tar.gz | tar -xz -C /usr/local/bin - name: Run Actionlint - run: actionlint + run: actionlint -shellcheck "" # run *without* shellcheck