Skip to content

Commit bd079be

Browse files
authored
Merge pull request #43520 from github/repo-sync
Repo sync
2 parents 4894ae9 + 405d5bf commit bd079be

File tree

8 files changed

+26
-23
lines changed

8 files changed

+26
-23
lines changed

.github/workflows/content-pipelines.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,11 +103,11 @@ jobs:
103103
ID: ${{ matrix.id }}
104104
run: |
105105
git add content/ data/
106-
git add "src/content-pipelines/state/${ID}.sha"
107106
if git diff --cached --quiet; then
108107
echo "has_changes=false" >> "$GITHUB_OUTPUT"
109108
echo "No documentation changes to commit"
110109
else
110+
git add "src/content-pipelines/state/${ID}.sha"
111111
git commit -m "docs: update ${ID} content from source docs" \
112112
-m "Updated by the content-pipeline-update agent (${ID}) via GitHub Actions." \
113113
-m "Run: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}"

content/copilot/concepts/agents/coding-agent/about-coding-agent.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,10 @@ Security is a fundamental consideration when you enable {% data variables.copilo
149149
* **Treated as an outside collaborator**
150150
* Draft pull requests created by {% data variables.copilot.copilot_coding_agent %} must be reviewed and merged by a human. {% data variables.copilot.copilot_coding_agent %} cannot mark its pull requests as "Ready for review" and cannot approve or merge a pull request.
151151
* By default, {% data variables.product.prodname_actions %} workflows are not triggered for {% data variables.copilot.copilot_coding_agent %}'s pull requests until a user with write access to the repository clicks the **Approve and run workflows** button. Optionally, you can configure {% data variables.product.prodname_copilot_short %} to allow workflows to run automatically. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/review-copilot-prs#managing-github-actions-workflow-runs).
152-
* **Tracked for compliance**: {% data variables.copilot.copilot_coding_agent %}'s commits are co-authored by the developer who assigned the issue or requested the change to the pull request, allowing attribution of proposed changes. The developer who asked {% data variables.product.prodname_copilot_short %} to create a pull request cannot approve that pull request. In repositories where an approving review is required, this ensures that at least one independent developer reviews {% data variables.copilot.copilot_coding_agent %}'s work.
152+
* **Tracked for compliance**
153+
* {% data variables.copilot.copilot_coding_agent %}'s commits are authored by {% data variables.product.prodname_copilot_short %}, with the developer who assigned the issue or requested the change to the pull request marked as the co-author. This makes it easier to identify code generated by {% data variables.copilot.copilot_coding_agent %} and who started the task.
154+
* The commit message for each agent-authored commit includes a link to the agent session logs, for code review and auditing. See [AUTOTITLE](/copilot/how-tos/use-copilot-agents/coding-agent/track-copilot-sessions).
155+
* The developer who asked {% data variables.product.prodname_copilot_short %} to create a pull request cannot approve that pull request. In repositories where an approving review is required, this ensures that at least one independent developer reviews {% data variables.copilot.copilot_coding_agent %}'s work.
153156

154157
For more information, see:
155158
* [AUTOTITLE](/copilot/tutorials/pilot-copilot-coding-agent#2-secure) (information on how organization owners can further enhance security)

content/copilot/how-tos/use-copilot-agents/coding-agent/track-copilot-sessions.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ You can see a list of your running and past pull requests generated by agents in
121121

122122
<img width=350rem src="/assets/images/help/copilot/coding-agent/mobile-status-dropdown.png" alt="Screenshot of the status dropdown list with a check mark against 'Open'." />
123123

124+
## Tracing commits to session logs
125+
126+
Every commit from {% data variables.copilot.copilot_coding_agent %} is authored by {% data variables.product.prodname_copilot_short %}, with the human who started the task marked as the co-author. Each commit message includes a link to the session logs for that commit.
127+
128+
This gives you a permanent link from any agent-authored commit back to the full session logs, so you can understand why {% data variables.product.prodname_copilot_short %} made a change during code review or trace it later for auditing purposes.
129+
124130
## Using the session logs to understand {% data variables.product.prodname_copilot_short %}'s approach
125131

126132
You can dive into {% data variables.product.prodname_copilot_short %}'s session logs in {% data variables.product.github %} or {% data variables.product.prodname_vscode %} to understand how it approached your task.

content/copilot/responsible-use/copilot-coding-agent.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,12 @@ Its permissions are limited, allowing it to push code and read other resources.
121121

122122
{% data variables.copilot.copilot_coding_agent %} does not have access to Actions organization or repository secrets or variables during runtime. Only secrets and variables specifically added to the `copilot` environment are passed to the agent.
123123

124+
### Ensuring traceability
125+
126+
{% data variables.copilot.copilot_coding_agent %}'s commits are authored by {% data variables.product.prodname_copilot_short %}, with the human who started the task marked as the co-author. This makes it easier to identify code generated by the agent and who initiated the task.
127+
128+
Each commit message includes a link to the agent session logs. This gives you a permanent link from any agent-authored commit to the full session logs, so you can understand why {% data variables.product.prodname_copilot_short %} made a change during code review or trace it later for auditing purposes.
129+
124130
### Preventing data exfiltration
125131

126132
By default, {% data variables.copilot.copilot_coding_agent %} has a firewall enabled to prevent exfiltration of code or other sensitive data, either accidentally or due to malicious user input.

data/reusables/copilot/differences-cfi-cfb-table.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
| | {% data variables.copilot.copilot_free_short %} | {% data variables.copilot.copilot_student_short %} | {% data variables.copilot.copilot_pro_short %} | {% data variables.copilot.copilot_pro_plus_short %} | {% data variables.copilot.copilot_business_short %} | {% data variables.copilot.copilot_enterprise_short %} |
44
| --- | --- | --- | --- | --- | --- | --- |
5-
| Pricing | Not applicable | Free | {% data variables.copilot.cfi_price_per_month %} per month, or<br>{% data variables.copilot.cfi_price_per_year %} per year<br>(free for some users) | {% data variables.copilot.cpp_price_per_month %} per month, or<br>{% data variables.copilot.cpp_price_per_year %} per year<br> | {% data variables.copilot.cfb_price_per_month %} per granted seat per month | {% data variables.copilot.ce_price_per_month %} per granted seat per month |
5+
| Pricing | Not applicable | Free | {% data variables.copilot.cfi_price_per_month %} per month<br>(free for some users) | {% data variables.copilot.cpp_price_per_month %} per month<br> | {% data variables.copilot.cfb_price_per_month %} per granted seat per month | {% data variables.copilot.ce_price_per_month %} per granted seat per month |
66
| Premium requests | 50 per month | 300 per month | 300 per month | 1500 per month | 300 per user per month | 1000 per user per month |
77
| Purchase additional premium requests at $0.04/request| {% octicon "x" aria-label="Not included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} | {% octicon "check" aria-label="Included" %} |
88

src/content-pipelines/scripts/update.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -224,6 +224,14 @@ async function main(): Promise<void> {
224224
diff = '(diff unavailable)'
225225
}
226226

227+
// No source doc files changed — skip the agent.
228+
if (!nameStatus.startsWith('(') && !nameStatus.trim()) {
229+
console.log(
230+
`No changes in ${SOURCE_PATH} between ${storedSha.slice(0, 7)} and ${currentSha.slice(0, 7)}. Skipping agent run.`,
231+
)
232+
return
233+
}
234+
227235
diffContent = [
228236
`# Source doc changes (${storedSha.slice(0, 7)}..${currentSha.slice(0, 7)})`,
229237
'',

src/secret-scanning/data/pattern-docs/fpt/public-docs.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,16 +1452,6 @@
14521452
hasExtendedMetadata: false
14531453
base64Supported: false
14541454
isduplicate: false
1455-
- provider: CloudBees
1456-
supportedSecret: CloudBees CodeShip Credential
1457-
secretType: codeship_credential
1458-
isPublic: true
1459-
isPrivateWithGhas: false
1460-
hasPushProtection: false
1461-
hasValidityCheck: false
1462-
hasExtendedMetadata: false
1463-
base64Supported: false
1464-
isduplicate: false
14651455
- provider: Cockroach Labs
14661456
supportedSecret: CockroachDB Cloud API Key
14671457
secretType: ccdb_api_key

src/secret-scanning/data/pattern-docs/ghec/public-docs.yml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1452,16 +1452,6 @@
14521452
hasExtendedMetadata: false
14531453
base64Supported: false
14541454
isduplicate: false
1455-
- provider: CloudBees
1456-
supportedSecret: CloudBees CodeShip Credential
1457-
secretType: codeship_credential
1458-
isPublic: true
1459-
isPrivateWithGhas: false
1460-
hasPushProtection: false
1461-
hasValidityCheck: false
1462-
hasExtendedMetadata: false
1463-
base64Supported: false
1464-
isduplicate: false
14651455
- provider: Cockroach Labs
14661456
supportedSecret: CockroachDB Cloud API Key
14671457
secretType: ccdb_api_key

0 commit comments

Comments
 (0)