Skip to content

Commit 8f244b2

Browse files
committed
Bump action version references from v1 to v2
1 parent fedf881 commit 8f244b2

File tree

8 files changed

+21
-21
lines changed

8 files changed

+21
-21
lines changed

.github/workflows/example-audit.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Start Buildcage builder
14-
uses: dash14/buildcage/setup@v1
14+
uses: dash14/buildcage/setup@v2
1515
with:
1616
proxy_mode: audit
1717

@@ -42,4 +42,4 @@ jobs:
4242

4343
- name: Show proxy report
4444
if: always()
45-
uses: dash14/buildcage/report@v1
45+
uses: dash14/buildcage/report@v2

.github/workflows/example-restrict.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111

1212
steps:
1313
- name: Start Buildcage builder
14-
uses: dash14/buildcage/setup@v1
14+
uses: dash14/buildcage/setup@v2
1515
with:
1616
proxy_mode: restrict
1717
allowed_https_rules: >-
@@ -46,6 +46,6 @@ jobs:
4646

4747
- name: Show proxy report
4848
if: always()
49-
uses: dash14/buildcage/report@v1
49+
uses: dash14/buildcage/report@v2
5050
with:
5151
fail_on_blocked: false

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ jobs:
9191

9292
- name: Start Buildcage in audit mode
9393
id: buildcage
94-
uses: dash14/buildcage/setup@v1
94+
uses: dash14/buildcage/setup@v2
9595
with:
9696
proxy_mode: audit # Log everything, block nothing
9797

@@ -109,7 +109,7 @@ jobs:
109109

110110
- name: Show Buildcage report
111111
if: always()
112-
uses: dash14/buildcage/report@v1
112+
uses: dash14/buildcage/report@v2
113113
with:
114114
fail_on_blocked: false # Don't fail, just show the report
115115
```
@@ -139,7 +139,7 @@ jobs:
139139
140140
- name: Start Buildcage in restrict mode
141141
id: buildcage
142-
uses: dash14/buildcage/setup@v1
142+
uses: dash14/buildcage/setup@v2
143143
with:
144144
proxy_mode: restrict # Block everything except allowed domains
145145
allowed_https_rules: >-
@@ -160,7 +160,7 @@ jobs:
160160
161161
- name: Show Buildcage report
162162
if: always()
163-
uses: dash14/buildcage/report@v1
163+
uses: dash14/buildcage/report@v2
164164
# Build fails if any unexpected connections were blocked
165165
```
166166

@@ -177,7 +177,7 @@ Starts the Buildcage builder container.
177177
```yaml
178178
- name: Start Buildcage builder
179179
id: buildcage
180-
uses: dash14/buildcage/setup@v1
180+
uses: dash14/buildcage/setup@v2
181181
with:
182182
proxy_mode: restrict
183183
allowed_https_rules: registry.npmjs.org:443 github.com:443
@@ -261,7 +261,7 @@ Displays communication logs after builds and optionally fails if any BLOCKED con
261261
```yaml
262262
- name: Show proxy report
263263
if: always()
264-
uses: dash14/buildcage/report@v1
264+
uses: dash14/buildcage/report@v2
265265
```
266266

267267
#### Job Summary

docs/development.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,12 +91,12 @@ Fields: `[timestamp] buildcage [status] "domain:port" reason`
9191
```
9292
.
9393
├── setup/ # GitHub Actions setup
94-
│ ├── action.yml # GitHub Action: dash14/buildcage/setup@v1
94+
│ ├── action.yml # GitHub Action: dash14/buildcage/setup@v2
9595
│ ├── compose.yml # Compose config for GitHub Actions (with image tag)
9696
│ ├── main.mjs # Setup entrypoint (rule generation, compose up)
9797
│ └── post.mjs # Post-action cleanup
9898
├── report/ # GitHub Actions report
99-
│ ├── action.yml # GitHub Action: dash14/buildcage/report@v1
99+
│ ├── action.yml # GitHub Action: dash14/buildcage/report@v2
100100
│ └── main.mjs # Log analysis and Job Summary output
101101
├── docker/
102102
│ ├── Dockerfile # Multi-stage BuildKit + haproxy + dnsmasq + s6-overlay

docs/rules.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ Since the regex is tested against the `domain:port` string, include a port patte
6767

6868
```yaml
6969
- name: Start Buildcage
70-
uses: dash14/buildcage/setup@v1
70+
uses: dash14/buildcage/setup@v2
7171
with:
7272
proxy_mode: restrict
7373

docs/self-hosting.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,13 +79,13 @@ jobs:
7979

8080
- name: Start Buildcage
8181
id: buildcage
82-
uses: <your_org>/buildcage/setup@v1
82+
uses: <your_org>/buildcage/setup@v2
8383
with:
8484
proxy_mode: audit
8585
# ... rest of your workflow
8686
```
8787

88-
Note that `uses:` now points to `<your_org>/buildcage/setup@v1` instead of `dash14/buildcage/setup@v1`. The same applies to the report action (`<your_org>/buildcage/report@v1`).
88+
Note that `uses:` now points to `<your_org>/buildcage/setup@v2` instead of `dash14/buildcage/setup@v2`. The same applies to the report action (`<your_org>/buildcage/report@v2`).
8989

9090
## Syncing with Upstream
9191

report/lib/build-example.mjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ export function buildRestrictExample(auditedRows, actionRepo) {
2828
// Build YAML lines
2929
let yaml = "";
3030
yaml += "- name: Start Buildcage in restrict mode\n";
31-
yaml += ` uses: ${actionRepo}/setup@v1\n`;
31+
yaml += ` uses: ${actionRepo}/setup@v2\n`;
3232
yaml += " with:\n";
3333
yaml += " proxy_mode: restrict\n";
3434
for (const [param, rules] of groups) {

report/lib/build-example.test.mjs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe("buildRestrictExample", () => {
3535
wrap(
3636
[
3737
"- name: Start Buildcage in restrict mode",
38-
` uses: ${REPO}/setup@v1`,
38+
` uses: ${REPO}/setup@v2`,
3939
" with:",
4040
" proxy_mode: restrict",
4141
" allowed_https_rules: >-",
@@ -56,7 +56,7 @@ describe("buildRestrictExample", () => {
5656
wrap(
5757
[
5858
"- name: Start Buildcage in restrict mode",
59-
` uses: ${REPO}/setup@v1`,
59+
` uses: ${REPO}/setup@v2`,
6060
" with:",
6161
" proxy_mode: restrict",
6262
" allowed_https_rules: >-",
@@ -77,7 +77,7 @@ describe("buildRestrictExample", () => {
7777
wrap(
7878
[
7979
"- name: Start Buildcage in restrict mode",
80-
` uses: ${REPO}/setup@v1`,
80+
` uses: ${REPO}/setup@v2`,
8181
" with:",
8282
" proxy_mode: restrict",
8383
" allowed_ip_rules: >-",
@@ -98,7 +98,7 @@ describe("buildRestrictExample", () => {
9898
wrap(
9999
[
100100
"- name: Start Buildcage in restrict mode",
101-
` uses: ${REPO}/setup@v1`,
101+
` uses: ${REPO}/setup@v2`,
102102
" with:",
103103
" proxy_mode: restrict",
104104
" allowed_https_rules: >-",
@@ -121,7 +121,7 @@ describe("buildRestrictExample", () => {
121121
wrap(
122122
[
123123
"- name: Start Buildcage in restrict mode",
124-
" uses: myorg/myrepo/setup@v1",
124+
" uses: myorg/myrepo/setup@v2",
125125
" with:",
126126
" proxy_mode: restrict",
127127
" allowed_https_rules: >-",

0 commit comments

Comments
 (0)