Skip to content
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
30 changes: 28 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,25 @@
name: CI

on: [push, pull_request]

permissions:
contents: read

concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
ci:
name: CI
runs-on: ubuntu-latest
steps:

- name: Checkout the source code
uses: actions/checkout@v2
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
fetch-depth: 1
persist-credentials: false

- name: Install Rust
run: rustup update stable && rustup default stable
Expand All @@ -25,7 +34,7 @@ jobs:
run: docker build -t rust-log-analyzer .

- name: Deploy to production
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@master
uses: rust-lang/simpleinfra/github-actions/upload-docker-image@4da88c824d96c01628fbad1e1b97cd24e08216c4 # master
with:
image: rust-log-analyzer
repository: rust-log-analyzer
Expand All @@ -35,3 +44,20 @@ jobs:
aws_access_key_id: "${{ secrets.AWS_ACCESS_KEY_ID }}"
aws_secret_access_key: "${{ secrets.AWS_SECRET_ACCESS_KEY }}"
if: github.ref == 'refs/heads/master'
Comment thread
ubiratansoares marked this conversation as resolved.

zizmor:
name: Zizmor
runs-on: ubuntu-latest
permissions:
contents: read
steps:
- name: Checkout the source code
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
with:
persist-credentials: false

- name: Run zizmor
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
Comment thread
ubiratansoares marked this conversation as resolved.
with:
advanced-security: false
config: zizmor.yml
4 changes: 4 additions & 0 deletions zizmor.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
rules:
secrets-outside-env:
ignore:
- main.yml