Skip to content

Commit 0c2ae85

Browse files
fix obvious guideline violations in 1 file(s) (#2479)
1 parent 0ba36c3 commit 0c2ae85

1 file changed

Lines changed: 18 additions & 16 deletions

File tree

‎workshop/side-quest-17-03-prompt-injection.md‎

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -57,14 +57,15 @@ cannot write to issues, open pull requests, or push commits — regardless of wh
5757

5858
Keep your `permissions:` block minimal. Request only what your workflow genuinely needs.
5959

60-
> **:running_man: Try it:** Open your `daily-status.md` workflow file and look at the frontmatter. Which setting authorizes the workflow to create issues, and does the `permissions:` block need to change?
61-
>
62-
> <details>
63-
> <summary>Hint</summary>
64-
>
65-
> `safe-outputs: create-issue:` enables issue creation. Keep `issues: read` in the `permissions:` block; no permission change is needed.
66-
>
67-
> </details>
60+
> [!TIP]
61+
> **Try it:** Open your `daily-status.md` workflow file and look at the frontmatter. Which setting authorizes the workflow to create issues, and does the `permissions:` block need to change?
62+
63+
<details>
64+
<summary>Hint</summary>
65+
66+
`safe-outputs: create-issue:` enables issue creation. Keep `issues: read` in the `permissions:` block; no permission change is needed.
67+
68+
</details>
6869

6970
### `safe-outputs` constraints limit available write operations
7071

@@ -84,14 +85,15 @@ safe-outputs:
8485

8586
Suppose an injection asks the agent to push a commit or delete a file. Those operations are not listed under `safe-outputs:`, so the attempt fails immediately.
8687

87-
> **:running_man: Try it:** Look at the `safe-outputs:` key in your `daily-status.md` frontmatter. List two write operations your workflow **cannot** perform given the current configuration. Verify your answer by checking which operations are _not_ listed there.
88-
>
89-
> <details>
90-
> <summary>Hint</summary>
91-
>
92-
> Any write operation not listed under `safe-outputs:` — such as `push-commit` or `delete-file` — is unavailable to the agent.
93-
>
94-
> </details>
88+
> [!TIP]
89+
> **Try it:** Look at the `safe-outputs:` key in your `daily-status.md` frontmatter. List two write operations your workflow **cannot** perform given the current configuration. Verify your answer by checking which operations are _not_ listed there.
90+
91+
<details>
92+
<summary>Hint</summary>
93+
94+
Any write operation not listed under `safe-outputs:` — such as `push-commit` or `delete-file` — is unavailable to the agent.
95+
96+
</details>
9597

9698
---
9799

0 commit comments

Comments
 (0)