Skip to content
This repository was archived by the owner on May 20, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 6 additions & 5 deletions .github/workflows/zizmor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,14 +20,15 @@ jobs:
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
- name: Get zizmor
run: cargo install zizmor

- name: Install the latest version of uv
uses: astral-sh/setup-uv@v4

- name: Run zizmor 🌈
run: zizmor --format sarif . > results.sarif
run: uvx zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
Expand Down
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
name = "github-actions-models"
authors = ["William Woodruff <william@yossarian.net>"]
description = "Unofficial, high-quality data models for GitHub Actions workflows, actions, and related components"
version = "0.13.0"
version = "0.14.0"
edition = "2021"
license = "MIT"
repository = "https://github.com/woodruffw/github-actions-models"
Expand Down
4 changes: 2 additions & 2 deletions src/workflow/job.rs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ pub struct NormalJob {
#[serde(default)]
pub outputs: IndexMap<String, String>,
#[serde(default)]
pub env: Env,
pub env: LoE<Env>,
pub defaults: Option<Defaults>,
pub steps: Vec<Step>,
pub timeout_minutes: Option<LoE<u64>>,
Expand Down Expand Up @@ -140,7 +140,7 @@ pub enum Container {
image: String,
credentials: Option<DockerCredentials>,
#[serde(default)]
env: Env,
env: LoE<Env>,
// TODO: model `ports`?
#[serde(default)]
volumes: Vec<String>,
Expand Down
Loading
Loading