From b2347865d6691d5b53ecf207fa7af7b85beaff15 Mon Sep 17 00:00:00 2001 From: per1234 Date: Sun, 12 Jan 2025 01:40:10 -0800 Subject: [PATCH] Update library-registry-submission-parser tool The "Manage PRs" GitHub Actions workflow uses a command line tool named "library-registry-submission-parser" to parse the pull requests submitted to this repository. A new version of "library-registry-submission-parser" has been released, and so the version specified in the workflow for use is hereby updated. Two additional mandatory flags have been added to the command line interface of library-registry-submission-parser, so these flags are added to the invocation, and an access control configuration file added to the repository as required for use with the new `--accesslist` flag. To start, the access control configuration file is left empty, giving all users default access privileges as before. The workflow will be adjusted to take advantage of the newly added access control capabilities of library-registry-submission-parser in a separate commit. --- .github/workflows/assets/accesslist.yml | 4 ++++ .github/workflows/manage-prs.yml | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 .github/workflows/assets/accesslist.yml diff --git a/.github/workflows/assets/accesslist.yml b/.github/workflows/assets/accesslist.yml new file mode 100644 index 00000000..89d25984 --- /dev/null +++ b/.github/workflows/assets/accesslist.yml @@ -0,0 +1,4 @@ +# Access control for the Arduino Library Manager registry. +# This file is used by https://github.com/arduino/library-registry-submission-parser, via the "Manage PRs" workflow. + +[] diff --git a/.github/workflows/manage-prs.yml b/.github/workflows/manage-prs.yml index 773e1c40..d15331a5 100644 --- a/.github/workflows/manage-prs.yml +++ b/.github/workflows/manage-prs.yml @@ -1,7 +1,7 @@ name: Manage PRs env: - SUBMISSION_PARSER_VERSION: 1.1.1 # See: https://github.com/arduino/library-manager-submission-parser/releases + SUBMISSION_PARSER_VERSION: 2.0.0 # See: https://github.com/arduino/library-manager-submission-parser/releases MAINTAINERS: | # GitHub user names to request reviews from in cases where PRs can't be managed automatically. - per1234 @@ -162,9 +162,11 @@ jobs: chmod u+x "${{ steps.download-parser.outputs.file-path }}" REQUEST="$( \ "${{ steps.download-parser.outputs.file-path }}" \ + --accesslist=".github/workflows/assets/accesslist.yml" \ --diffpath="${{ needs.diff.outputs.path }}/${{ needs.diff.outputs.filename }}" \ --repopath="${{ github.workspace }}" \ --listname="repositories.txt" \ + --submitter="${{ github.actor }}" \ )" # Due to limitations of the GitHub Actions workflow system, dedicated outputs must be created for use in # certain workflow fields.