From 1631dd36205e901f5683183a16beafc2a048aa8f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Tue, 2 Jun 2026 17:55:19 +0200 Subject: [PATCH 1/4] change action link to the actual action --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 6c02498..09b5e13 100644 --- a/README.md +++ b/README.md @@ -24,7 +24,7 @@ jobs: uses: actions/checkout@v4 - name: Run RsMetaCheck - uses: your-github-username/rsmetacheck-action@v1 + uses: SoftwareUnderstanding/rs-metacheck-action@v1 with: # You can pass the repository URL automatically input: "https://github.com/${{ github.repository }}" From ec9e4ba02cdd7062cd160007f98ab00d32324aac Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Wed, 3 Jun 2026 10:08:01 +0200 Subject: [PATCH 2/4] fix action snippet - checkout action version changed to v6 (latest) - uses correct url to latest rsmetacheck action version --- README.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 09b5e13..9dada83 100644 --- a/README.md +++ b/README.md @@ -21,10 +21,10 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout Code - uses: actions/checkout@v4 + uses: actions/checkout@v6 - name: Run RsMetaCheck - uses: SoftwareUnderstanding/rs-metacheck-action@v1 + uses: SoftwareUnderstanding/rs-metacheck-action@0.3.1 with: # You can pass the repository URL automatically input: "https://github.com/${{ github.repository }}" From 74df9568d8c0f7e129bac04f66a68b61950f7d6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Thu, 4 Jun 2026 18:42:34 +0200 Subject: [PATCH 3/4] change input not required to use the actual repository as input. input can still be overriden. --- .github/workflows/test.yml | 2 +- README.md | 7 ++++--- action.yml | 3 ++- entrypoint.sh | 9 +++++++-- 4 files changed, 14 insertions(+), 7 deletions(-) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 9f88352..ed59bb5 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -16,7 +16,7 @@ jobs: # defined in the root of the CURRENT repository. uses: ./ with: - input: "https://github.com/${{ github.repository }}" + # test with default input (current repository) verbose: "true" - name: Verify outputs generated diff --git a/README.md b/README.md index 9dada83..7d9f9b3 100644 --- a/README.md +++ b/README.md @@ -25,10 +25,10 @@ jobs: - name: Run RsMetaCheck uses: SoftwareUnderstanding/rs-metacheck-action@0.3.1 + # optional arguments with: - # You can pass the repository URL automatically - input: "https://github.com/${{ github.repository }}" - pitfalls_output: "./pitfalls_outputs" + input: https://github.com/$GITHUB_REPOSITORY # if input is omited it will use GITHUB_REPOSITORY url + pitfalls_output: "./pitfalls_outputs" verbose: "false" ``` @@ -45,6 +45,7 @@ jobs: | `branch` | Branch of the repository to analyze. | No | | | `generate_codemeta` | Generate codemeta files for each repository. | No | `false` | | `verbose` | Include both detected AND undetected pitfalls in the output JSON-LD. | No | `false` | +| `config` | Specify the location of the `rsmetacheck.toml` to define the configuration. RSMetaCheck automatically detects a .rsmetacheck.toml (or rsmetacheck.toml) file at the working directory. | No | `rsmetacheck.toml` | ### Outputs diff --git a/action.yml b/action.yml index 8368e23..a7aa167 100644 --- a/action.yml +++ b/action.yml @@ -8,7 +8,8 @@ branding: inputs: input: description: 'One or more: GitHub/GitLab URLs, JSON files containing repositories. (e.g. "https://github.com/owner/repo")' - required: true + required: false + default: "https://github.com/${GITHUB_REPOSITORY}" skip_somef: description: "Skip SoMEF execution and analyze existing SoMEF output files directly." required: false diff --git a/entrypoint.sh b/entrypoint.sh index 7ba7f32..fdcf3b6 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -9,8 +9,13 @@ if [ -n "$INPUT_INPUT" ]; then # Note: Do not quote $INPUT_INPUT here in case multiple URLs are passed as spaces CMD="$CMD --input $INPUT_INPUT" else - echo "Error: The 'input' argument is required." - exit 1 + # use the repository URL as the default input if not provided + if [ -n "$GITHUB_REPOSITORY" ]; then + CMD="$CMD --input https://github.com/$GITHUB_REPOSITORY" + else # if github repository url is not existing then return error + echo "Error: The 'input' argument is required." + exit 1 + fi fi # Handle boolean flags From 9e60c0c975fa9b71da3792f886632935f5bc6e26 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=20Fran=C3=A7ois?= Date: Thu, 4 Jun 2026 18:44:05 +0200 Subject: [PATCH 4/4] add test.yml on pull_request events --- .github/workflows/test.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index ed59bb5..36cbb92 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -3,6 +3,8 @@ name: Test the Action on: push: branches: ["main"] + pull_request: + branches: ["main"] jobs: test-rsmetacheck: