Skip to content

Commit a284272

Browse files
committed
fix: [#428] correct prometheus tag in docker_image test and workflow action policy
1 parent 54bddfc commit a284272

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

.github/workflows/docker-security-scan.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,15 +101,18 @@ jobs:
101101
timeout-minutes: 10
102102
outputs:
103103
# JSON array of Docker image references for use in scan matrix
104-
# Example: ["torrust/tracker:develop","mysql:8.4","prom/prometheus:v3.5.0","grafana/grafana:12.3.1","caddy:2.10.2"]
104+
# Example: ["torrust/tracker:develop","mysql:8.4","prom/prometheus:v3.5.1","grafana/grafana:12.4.2","caddy:2.10.2"]
105105
images: ${{ steps.extract.outputs.images }}
106106

107107
steps:
108108
- name: Checkout code
109109
uses: actions/checkout@v5
110110

111111
- name: Install Rust toolchain
112-
uses: actions-rust-lang/setup-rust-toolchain@v1
112+
uses: dtolnay/rust-toolchain@stable
113+
114+
- name: Cache Rust dependencies
115+
uses: Swatinem/rust-cache@v2
113116

114117
- name: Build deployer CLI
115118
run: cargo build --release

src/shared/docker_image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ mod tests {
128128

129129
#[test]
130130
fn it_should_create_from_str_tuple() {
131-
let image = DockerImage::from(("prom/prometheus", "v3.5.0"));
131+
let image = DockerImage::from(("prom/prometheus", "v3.5.1"));
132132

133133
assert_eq!(image.full_reference(), "prom/prometheus:v3.5.1");
134134
}

0 commit comments

Comments
 (0)