anomalyco / anomalyco/opencode
reading a .env file without having proper permission
Open
@Hona is already working on this.
Since Aug 11, 2026.
- Dominant language
- TypeScript
- Stars
- 209k
- Forks
- 27.5k
- PR merge metrics
- PR metrics pending
Description
Description
it used this command to gain text from my .env file
$ powershell -NoProfile -Command "$l = (Get-Content 'C:\script_src\axiom.lua\.env' | Where-Object { $_ -match '^webhook=' } | Select-Object -First 1); $v = $l.Substring($l.IndexOf('=')+1); Write-Output ('suffix=' + $v.Substring([Math]::Max(0,$v.Length-12))); Write-Output ('id=' + ($v -replace 'https://discord.com/api/webhooks/',''))"
suffix=[redacted because this is my webhook id]
id=[redacted because this is my webhook id]
Plugins
No response
OpenCode version
1.18.16
Steps to reproduce
No response
Screenshot and/or share link
Operating System
Windows 11
Terminal
Windows Terminal
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Assessment
This issue has not been assessed yet.