Skip to content

feat(research): Map a pinned Action commit to its release - #6490

Merged
dan-petty merged 7 commits into
mainfrom
feat/4012-resolve-a-pinned-action-commit-to
Nov 20, 2026
Merged

dan-petty merged 7 commits into
mainfrom
feat/4012-resolve-a-pinned-action-commit-to

Conversation

@devops-cli-service

@devops-cli-service devops-cli-service Bot commented Nov 20, 2026 •

Copy link
Copy Markdown
Contributor

An Action that a workflow pins to a commit and a major tag (uses: <action>@<commit> # v7) names no one release, so devops research advisories counted the pin in unpinned and matched no advisory to it (#4012). The command now reads the tags of the Action repository (GET /repos/{owner}/{repo}/tags on api.github.com) and takes the highest full release tag at the commit. A sub-path Action such as github/codeql-action/init reads the tags of its repository.

Measured on 2026-11-20: 33 of the 97 Action pins of this repository name a commit and no full release (32 actions/checkout at # v7, 1 dataaxiom/ghcr-cleanup-action at # v1). They are in 2 repositories, and each commit is on the first tags page, so a run sends 2 extra requests, against the limit of 60 requests an hour without a token.

Closes #4012

Change: openspec/changes/archive/2026-11-20-4012-resolve-a-pinned-action-commit-to/

@devops-cli-service devops-cli-service Bot added type/feature Type feature: a new function scope/research The research agent: the pins of the project and the news about them labels Nov 20, 2026
@devops-cli-service
devops-cli-service Bot force-pushed the feat/4012-resolve-a-pinned-action-commit-to branch 3 times, most recently from bd9e9a5 to ad6737e Compare November 20, 2026 02:24
@devops-cli-service

Copy link
Copy Markdown
Contributor Author

The steps of the job:

Step Status Attempts Tokens in/out Last failing command
group 1 done 1 2401032/11756 pytest on base: tests/research/test_inventory.py
group 2 done 2 2770646/15796 pytest on base: tests/research/test_version_match.py
group 3 done 1 2820163/15999 pytest on base: tests/research/test_github_advisories.py
group 4 done 1 8375688/55390 pytest on base: tests/research/test_advisories.py
  • tools: run_command 96, read_file 65, edit_file 62, grep 17, list_files 4, write_file 2, create_directory 1
  • scoped check pre-push: passed, 10 s
  • scoped check static: passed, 30 s
  • scoped check tests: passed, 41 s
  • scoped check strength: passed, 0 s
  • strength: passed
  • fail-to-pass of group 1: fails on the base commit. Tests that fail on the base commit: tests.research.test_inventory::test_inventory_lists_one_component_for_each_pin_of_the_fixture_repository.
  • fail-to-pass of group 2: fails on the base commit. Tests that fail on the base commit: tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7.2.1+local-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[latest-None], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags0-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7-None], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags3-v7.2.1], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[3.14-None], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags4-v7.2.1], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags5-None], tests.research.test_version_match::test_the_highest_full_release_tag_of_the_commit_is_the_release, tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags6-None], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags2-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7.2.1-rc1-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[2026.10.4-2026.10.4], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7.2.1-7.2.1], tests.research.test_version_match::test_the_release_of_a_commit_is_a_full_release_tag_at_it[tags1-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7.2.1.dev1-None], tests.research.test_version_match::test_a_tag_is_a_full_release_only_with_three_numbers_and_no_variant[v7.2.1.post1-None].
  • fail-to-pass of group 3: fails on the base commit. Tests that fail on the base commit: tests.research.test_github_advisories::test_a_next_page_of_tags_on_another_host_is_a_failed_read_and_gets_no_request, tests.research.test_github_advisories::test_a_tag_that_names_no_full_release_is_read_as_it_is, tests.research.test_github_advisories::test_a_tag_list_over_the_page_limit_is_a_failed_read, tests.research.test_github_advisories::test_a_failed_tags_read_is_a_failed_lookup, tests.research.test_github_advisories::test_the_tags_of_a_repository_are_read_page_by_page_until_the_commit.
  • fail-to-pass of group 4: fails on the base commit. Tests that fail on the base commit: tests.research.test_advisories::test_a_pinned_commit_resolves_to_its_full_release, tests.research.test_advisories::test_a_github_advisory_of_an_action_gives_a_finding_where_osv_gives_none, tests.research.test_advisories::test_a_component_that_the_watch_list_does_not_map_is_counted_as_not_covered, tests.research.test_advisories::test_the_requests_of_a_run_with_actions_and_a_watch_list_name_each_repository, tests.research.test_advisories::test_a_pinned_commit_with_no_full_release_tag_stays_unpinned, tests.research.test_advisories::test_a_failed_tags_read_is_a_failure_and_not_a_clean_pin, tests.research.test_advisories::test_only_registry_packages_are_asked_and_the_rest_is_counted.
  • comments of the item in the step inputs: feat(research): resolve a pinned action commit to its release #4012 (comment)

@devops-cli-service

Copy link
Copy Markdown
Contributor Author

Check results

Head commit: ecc753e336566d2524c9e029791deb74cf56bbef

Check Conclusion Link
Tests & Coverage success run
devops-cli success run
zizmor success run
trivy-config success run
Trivy success run
Plan Check skipped run
CodeQL success run
Fail-to-Pass Check skipped run
Tests on Main skipped run
Test Job Duration skipped run
Dependency Freshness skipped run
Tests & Coverage (shard 2 of 5) success run
Tests & Coverage (shard 4 of 5) success run
Tests & Coverage (shard 1 of 5) success run
Service Image success run
Tests & Coverage (shard 3 of 5) success run
MCP Server Image success run
Static Analysis success run
Tests & Coverage (shard 5 of 5) success run
Analyze (python) success run
Changed-Test Independence success run
Design Tokens success run
Analyze (actions) success run
Runner Image success run
Semantic PR title success run

Skipped check: Plan Check
Skipped check: Fail-to-Pass Check
Skipped check: Tests on Main
Skipped check: Test Job Duration
Skipped check: Dependency Freshness

devops-cli-service Bot and others added 7 commits November 20, 2026 15:15
…#4012)

A pin such as github/codeql-action/init@<sha> # v4 built the tags URL of the path, got 404 and failed the command. The tags reads now group by owner/repo, and a failed read gives one failure for each repository and version, not one for each pin. The tags fixture is labelled as synthetic. The inventory and egress specs keep their earlier requirements word for word, with the owner approval of 2026-11-07 as recorded, and add the commit field and the tags read as new requirements.
…4012)

The tags answer of actions/checkout was hand-written but labelled as recorded. It is now the trimmed answer that GitHub gave on 2026-11-20, and the fixture workflow pins the commit of the tag v4, which v4.4.0 also names. The change folder states the measured request count: 2 tags repositories for this repository, each commit on the first page, so 2 extra requests a run against the limit of 60 an hour without a token. It drops the stale count 47 of 80.
@dan-petty
dan-petty force-pushed the feat/4012-resolve-a-pinned-action-commit-to branch from ecc753e to 2d090e1 Compare November 20, 2026 15:25
@dan-petty

Copy link
Copy Markdown
Owner

An agent fixed the findings of the independent review of ecc753e on this branch. The branch is rebased on main (cbf4fcd), and the new head is 2d090e1.

Finding Fix Tests
Major: a sub-path Action pin (github/codeql-action/init@<sha> # v4) builds the tags URL of the path, gets 404 and fails the command action_commit_repositories groups the pins by owner/repo, the first two parts of the name. The pin keeps its full name for the release and the advisory match. test_a_sub_path_action_pin_reads_the_tags_of_its_repository (fails at ecc753e)
Major: the PR does not state the request count Measured on 2026-11-20 with action_commit_repositories on this repository: 33 of 97 Action pins name a commit and no full release (32 actions/checkout at # v7, 1 dataaxiom/ghcr-cleanup-action at # v1). That is 2 repositories. Each commit is on the first page of 100 tags (68 and 22 tags), so a run sends 2 extra requests, against the limit of 60 requests an hour without a token. The PR body, proposal.md, design.md and task 4.2 state this count. The figure 47 of 80 and "no tool of this run counted them" are gone. Count from the code and the GitHub tags API, not a test
Minor: one identical failure for each pin A failed tags read gives one failure for each repository and version, as _failure gives one for each pin group. test_a_failed_tags_read_gives_one_failure_for_each_repository_and_version (fails at ecc753e)
Minor: typos and the dropped tools-lock requirement files in research-inventory The requirement "The inventory lists each pin as a typed component" is back word for word. The commit field is the new requirement "An Action pin to a commit keeps its commit". devops openspec check
Minor: the egress spec rewrites the owner approval and forbids the OSV host The requirement of the 2026-11-07 approval is back word for word, with "to these two hosts and to no other host that this approval names". The tags read is the new requirement "The tags read of a pinned Action goes to api.github.com only". It says that the approval of 2026-11-07 names the advisories API and not this path. devops openspec check
Minor: the synthetic tags fixture is labelled as recorded The fixture is now the trimmed answer that GitHub gave on 2026-11-20 (68 tags). The fixture workflow pins the commit of the tag v4 (also v4.4.0), and the no-release case uses the commit of v6-beta. test_a_pinned_commit_resolves_to_its_full_release, test_a_pinned_commit_with_no_full_release_tag_stays_unpinned

Owner approval needed. The tags read sends GET /repos/{owner}/{repo}/tags to api.github.com. The host is approved (#3987, 2026-11-07), but that approval names only the advisories API (GET /advisories and GET /repos/{owner}/{repo}/security-advisories). The tags path is new. Please approve or refuse this path before the merge.

Checks on 2d090e1 in the devcontainer: devops ci test tests/research tests/commands/test_research_advisories.py tests/commands/test_research_inventory.py (176 passed), ruff, mypy of advisories.py, and devops openspec check pass.

@dan-petty
dan-petty merged commit d27abc8 into main Nov 20, 2026
28 checks passed
@dan-petty
dan-petty deleted the feat/4012-resolve-a-pinned-action-commit-to branch November 20, 2026 15:39
dan-petty pushed a commit that referenced this pull request Nov 20, 2026
🤖 I have created a release *beep* *boop*
---


##
[0.183.0](v0.182.3...v0.183.0)
(2026-11-20)


### Features

* **research:** Map a pinned Action commit to its release
([#6490](#6490))
([d27abc8](d27abc8))


### Bug Fixes

* **roadmap:** Name a dependency cycle in the roadmap jobs
([#6505](#6505))
([494de4f](494de4f))
* **roadmap:** Read only blockers under Dependencies
([#6514](#6514))
([59fc325](59fc325))


### Code Refactoring

* **docker:** build the runner image FROM devtools with no tool install
([#6513](#6513))
([a165aaa](a165aaa)),
closes [#4361](#4361)

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

Co-authored-by: dan-petty-release[bot] <346998822+dan-petty-release[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

scope/research The research agent: the pins of the project and the news about them type/feature Type feature: a new function

Projects

None yet

Development

Successfully merging this pull request may close these issues.

feat(research): resolve a pinned action commit to its release

1 participant