Skip to content

docs(exercise-3): fix hint anchors + add marketplace-actions guide#7

Open
ShmuelMax100 wants to merge 2 commits intomainfrom
docs/exercise-3-hints-and-marketplace
Open

docs(exercise-3): fix hint anchors + add marketplace-actions guide#7
ShmuelMax100 wants to merge 2 commits intomainfrom
docs/exercise-3-hints-and-marketplace

Conversation

@ShmuelMax100
Copy link
Copy Markdown
Owner

What

Two fixes to Exercise 3 (Release Pipeline) feedback:

1. Hint links now point at exact code lines, not section headers

Every TODO's Read this link was landing on a section heading rather than on the YAML snippet that answers the TODO. Re-pointed all 10 to the exact line of the relevant code:

# Was Now
reusable-workflows.md#L102 (header) #L126 (runs: block)
#L106 (header) #L131 (inputs.python-version use)
#L140 ✓ #L140 ✓
#L21 (header) #L29 (on: workflow_call:)
caching-and-matrix.md#L135 (header) #L154 (fromJSON(inputs.python-versions))
#L143 (header) #L150 (uses: ./.github/actions/...)
manual-triggers.md#L20 (header) #L23 (workflow_dispatch: snippet)
reusable-workflows.md#L64 (header) #L75 (uses: ./.github/workflows/deploy.yml)
#L159 (unrelated section) #L150 (uses: ./.github/actions/...)
security-best-practices.md#L7 (just SHA pinning) new marketplace-actions.md#L54 + SHA-pin link

2. TODO ⑩ now has a real reference

TODO ⑩ asks the learner to "Create a GitHub Release using a third-party action", but no module guide showed that pattern. The hint pointed only at SHA-pinning advice. Added a new guide:

modules/02-github-actions/marketplace-actions.md

Covers:

  • Finding actions in the Marketplace
  • Evaluating them (verified, stars, last commit)
  • Safe usage (SHA pin, least-privilege permissions:)
  • A complete softprops/action-gh-release publish-release example matching what TODO ⑩ asks for
  • Common Marketplace actions table

Linked from the README's Module 2 table.

Why

User feedback: "hints and solutions are not pointing exactly to the lines where the needed code for TODO. or sometimes the needed code is not in the hint at all."

Test

  • All updated ?plain=1#L<n> anchors verified against current target-file line numbers
  • marketplace-actions.md line 54 lands on "## Example: publish a GitHub Release"

Out of scope

The os-list / quick mismatch between the exercise template and solutions/03-release-workflow/ (separately tracked) is not addressed in this PR.

Shmuel Max and others added 2 commits May 3, 2026 02:12
- Re-point all 10 'Read this' links from section headers to the exact code lines
- Add modules/02-github-actions/marketplace-actions.md covering Marketplace
  discovery, evaluation, safe usage, and the publish-release example
- Wire TODO 10 hint to the new marketplace-actions.md publish-release example
- Link the new guide from README

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…actions.md

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the GitHub Actions training materials for Exercise 3 by tightening hint links to exact source lines and adding a new guide for safely using Marketplace actions. It fits into the workshop docs by improving the discoverability and accuracy of learning references in Module 2.

Changes:

  • Added a new marketplace-actions.md guide covering action discovery, evaluation, SHA pinning, permissions, and a release example.
  • Updated Exercise 3 hint links to point at exact YAML lines instead of broader section headers.
  • Added the new Marketplace-actions guide to the Module 2 README index, and included an additional presentation image asset.

Reviewed changes

Copilot reviewed 3 out of 4 changed files in this pull request and generated 2 comments.

File Description
resources/presentation/github-pr-ui.png Adds a new presentation image asset.
modules/02-github-actions/marketplace-actions.md New guide for finding, evaluating, and safely using Marketplace actions.
modules/02-github-actions/exercises/exercise-3.md Retargets Exercise 3 hint links to more precise line anchors and updates TODO ⑩ guidance.
README.md Adds the new Marketplace-actions guide to the Module 2 topic list.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +74 to +77
tag_name: ${{ inputs.version }}
name: Release ${{ inputs.version }}
generate_release_notes: true # auto-generate from PR titles
prerelease: ${{ inputs.prerelease }} # honor the dispatch input
| ⑦ | `workflow_dispatch` inputs | Manual triggers | [manual-triggers.md → `workflow_dispatch:` snippet](../manual-triggers.md?plain=1#L23) |
| ⑧ | `jobs.<id>.uses:` | Calling a reusable workflow | [reusable-workflows.md → `uses: ./.github/workflows/deploy.yml` line](../reusable-workflows.md?plain=1#L75) |
| ⑨ | Reusing the composite action | DRY principle | [reusable-workflows.md → `uses: ./.github/actions/...` line](../reusable-workflows.md?plain=1#L150) |
| ⑩ | Third-party action via SHA-pinned `uses:` | Marketplace actions | [marketplace-actions.md → `Create GitHub Release` step (copy this block)](../marketplace-actions.md?plain=1#L71) · [security-best-practices.md → SHA-pin example](../security-best-practices.md?plain=1#L16) |
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants