Commit 8d10cff
feat: Add support for building Amber from source (#69)
* feat: Add support for building Amber from source
* Add a test
* Use GITHUB_TOKEN
* fix: Replace cargo -C flag with cd command for stability
The -C flag in cargo is unstable and requires the nightly toolchain.
Changed to use `cd && cargo build` instead for better compatibility.
This fixes the failing test-repository-ref CI check.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* security: Fix template injection in test workflow
Pass step outputs through environment variables instead of direct
template expansion to prevent potential code injection attacks.
This addresses the zizmor security warning about template-injection.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* security: Fix template injection vulnerabilities in action.yaml
Pass all GitHub Actions template expansions through environment
variables instead of direct shell interpolation to prevent potential
code injection attacks.
Changes:
- Determine source directory: Pass inputs and step outputs via env vars
- Checkout Amber source: Pass repository URL and ref via env vars
- Main step: Pass action path via env var
This addresses zizmor template-injection warnings in the composite action.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* Restore comment
* build
* refactor: Simplify Rust installation error message
Make the error message less prescriptive by removing the specific
rustup command. Now just hints that Rust toolchain setup may be needed.
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
* docs: Add documentation for building from source
Add comprehensive documentation for the new amber-repository-ref and
amber-repository-url inputs, including:
- Parameter descriptions in the usage section
- Multiple examples showing different use cases
- Note about Rust toolchain requirements
Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Sonnet 4.5 <noreply@anthropic.com>1 parent 2a75b8a commit 8d10cff
File tree
5 files changed
+382
-187
lines changed- .github/workflows
- dist
- src
5 files changed
+382
-187
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
91 | 110 | | |
92 | 111 | | |
93 | 112 | | |
| |||
101 | 120 | | |
102 | 121 | | |
103 | 122 | | |
104 | | - | |
105 | | - | |
106 | | - | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
107 | 128 | | |
108 | 129 | | |
109 | 130 | | |
110 | | - | |
| 131 | + | |
111 | 132 | | |
112 | 133 | | |
113 | 134 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
30 | 40 | | |
31 | 41 | | |
32 | 42 | | |
| |||
94 | 104 | | |
95 | 105 | | |
96 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
97 | 136 | | |
98 | 137 | | |
99 | 138 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
10 | 20 | | |
11 | 21 | | |
12 | 22 | | |
| |||
42 | 52 | | |
43 | 53 | | |
44 | 54 | | |
| 55 | + | |
45 | 56 | | |
46 | 57 | | |
47 | 58 | | |
48 | | - | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
49 | 106 | | |
50 | 107 | | |
51 | 108 | | |
| 109 | + | |
52 | 110 | | |
53 | 111 | | |
54 | 112 | | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
55 | 116 | | |
56 | 117 | | |
57 | | - | |
| 118 | + | |
0 commit comments