Skip to content

Address CodeQL warnings #4

Address CodeQL warnings

Address CodeQL warnings #4

Workflow file for this run

# Copyright (C) 2024 Roberto Rossini <roberros@uio.no>
#
# SPDX-License-Identifier: MIT
name: Lint CITATION.cff
on:
push:
branches: [main]
paths:
- ".github/workflows/lint-cff.yml"
- "CITATION.cff"
pull_request:
paths:
- ".github/workflows/lint-cff.yml"
- "CITATION.cff"
# https://stackoverflow.com/a/72408109
concurrency:
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
cancel-in-progress: true
defaults:
run:
shell: bash
permissions:
contents: read
jobs:
lint-cff:
runs-on: ubuntu-latest
name: Lint CITATION.cff
steps:
- uses: actions/checkout@v4
with:
sparse-checkout: CITATION.cff
sparse-checkout-cone-mode: false
- name: Generate DESCRIPTION file
run: |
cat << EOF > DESCRIPTION
Package: stripepy-hic
Title: What the Package Does (One Line, Title Case)
Version: 0.0.0.9000
Authors@R:
person("First", "Last", , "first.last@example.com", role = c("aut", "cre"))
Description: What the package does (one paragraph).
License: MIT
Encoding: UTF-8
Roxygen: list(markdown = TRUE)
RoxygenNote: 7.3.2
Imports:
cffr
EOF
- name: Setup R
uses: r-lib/actions/setup-r@473c68190595b311a74f208fba61a8d8c0d4c247 # v2.11.1
- name: Add requirements
uses: r-lib/actions/setup-r-dependencies@473c68190595b311a74f208fba61a8d8c0d4c247 # v2.11.1
- name: Lint CITATION.cff
run: Rscript -e 'cffr::cff_validate("CITATION.cff")'