Skip to content

Commit 3276cf1

Browse files
committed
Fix action cache
1 parent 951831b commit 3276cf1

File tree

2 files changed

+17
-3
lines changed

2 files changed

+17
-3
lines changed

.github/workflows/cedar-validation.yaml

+17-2
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,31 @@ jobs:
1313
steps:
1414
- name: Checkout
1515
uses: actions/checkout@v4
16+
- name: Restore cached crates
17+
id: cargo-cache-restore
18+
uses: actions/cache/restore@v4
19+
with:
20+
path: |
21+
~/.cargo/bin/
22+
~/.cargo/registry/index/
23+
~/.cargo/registry/cache/
24+
~/.cargo/git/db/
25+
~/.cargo/.crates.toml
26+
~/.cargo/.crates2.json
27+
key: ${{ runner.os }}-cargo-${{env.CEDAR_VERSION}}
1628
- name: Install cedar-cli
1729
run: cargo install cedar-policy-cli@${{env.CEDAR_VERSION}}
18-
- uses: actions/cache@v4
30+
- name: Save Primes
31+
id: cargo-cache-save
32+
uses: actions/cache/save@v4
1933
with:
2034
path: |
2135
~/.cargo/bin/
2236
~/.cargo/registry/index/
2337
~/.cargo/registry/cache/
2438
~/.cargo/git/db/
25-
target/
39+
~/.cargo/.crates.toml
40+
~/.cargo/.crates2.json
2641
key: ${{ runner.os }}-cargo-${{env.CEDAR_VERSION}}
2742
- name: Validate Policies
2843
run: make validate-policies

internal/schema/convert/openapi.go

-1
Original file line numberDiff line numberDiff line change
@@ -507,7 +507,6 @@ func parseCRDProperties(depth int, properties map[string]spec.Schema) (map[strin
507507
continue
508508
}
509509

510-
// klog.V(2).Infof("Skipping %s attr %s object", k, v.Type[0])
511510
if v.Properties != nil {
512511
attrs, err := parseCRDProperties(depth-1, v.Properties)
513512
if err != nil {

0 commit comments

Comments
 (0)