diff --git a/.github/workflows/security-audit.yml b/.github/workflows/security-audit.yml index bff42038..81ee3ed0 100644 --- a/.github/workflows/security-audit.yml +++ b/.github/workflows/security-audit.yml @@ -2,20 +2,28 @@ name: Security audit on: pull_request: paths: - - '**/Cargo.toml' - - '**/Cargo.lock' + - "**/Cargo.toml" + - "**/Cargo.lock" push: paths: - - '**/Cargo.toml' - - '**/Cargo.lock' + - "**/Cargo.toml" + - "**/Cargo.lock" schedule: - - cron: '0 0 * * *' + - cron: "0 0 * * *" jobs: security_audit: if: (github.event_name == 'schedule' && github.repository == 'starship/starship') || (github.event_name != 'schedule') runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2.3.5 - - uses: actions-rs/audit-check@v1.2.0 + - name: Setup | Checkout + uses: actions/checkout@v2.3.5 + - name: Setup | Rust + uses: actions-rs/toolchain@v1.0.7 + with: + toolchain: stable + override: true + profile: minimal + - name: Test | Security Audit + uses: actions-rs/audit-check@v1.2.0 with: token: ${{ secrets.GITHUB_TOKEN }} diff --git a/Cargo.toml b/Cargo.toml index 92de92d9..5c335c31 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "starship" version = "0.58.0" -edition = "2018" +edition = "2021" authors = ["Matan Kushner "] homepage = "https://starship.rs" documentation = "https://starship.rs/guide/" diff --git a/starship_module_config_derive/Cargo.toml b/starship_module_config_derive/Cargo.toml index 928eef5f..736dc841 100644 --- a/starship_module_config_derive/Cargo.toml +++ b/starship_module_config_derive/Cargo.toml @@ -1,7 +1,7 @@ [package] name = "starship_module_config_derive" version = "0.2.1" -edition = "2018" +edition = "2021" authors = ["Matan Kushner "] homepage = "https://starship.rs" documentation = "https://starship.rs/guide/"