-
Notifications
You must be signed in to change notification settings - Fork 3
Update workflow actions #52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,9 +18,9 @@ jobs: | |
| name: Unit Tests on Linux | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up dotnet | ||
| uses: actions/setup-dotnet@v4 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '10.x' | ||
| - name: Run unit tests | ||
|
|
@@ -54,9 +54,9 @@ jobs: | |
| SAMA_ENCRYPTION_KEY: test-encryption-key-for-ci-only | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up dotnet | ||
| uses: actions/setup-dotnet@v4 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '10.x' | ||
|
Comment on lines
+57
to
61
|
||
| - name: Run integration tests | ||
|
|
@@ -97,9 +97,9 @@ jobs: | |
| SAMA_ENCRYPTION_KEY: test-encryption-key-for-ci-only | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| - name: Set up dotnet | ||
| uses: actions/setup-dotnet@v4 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '10.x' | ||
|
Comment on lines
+100
to
104
|
||
| - name: Build | ||
|
|
@@ -117,6 +117,6 @@ jobs: | |
| name: Docker Build | ||
| runs-on: ubuntu-latest | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
|
||
| - name: Build Docker image | ||
| run: docker build -t sama:ci-test . | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -20,12 +20,12 @@ jobs: | |
| outputs: | ||
| version: ${{ steps.minver.outputs.version }} | ||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up dotnet | ||
| uses: actions/setup-dotnet@v4 | ||
| uses: actions/setup-dotnet@v5 | ||
| with: | ||
| dotnet-version: '10.x' | ||
|
Comment on lines
+23
to
30
|
||
|
|
||
|
|
@@ -58,19 +58,19 @@ jobs: | |
| description: "Service Availability Monitoring and Alerting - A modern uptime monitoring system (with sudo)" | ||
|
|
||
| steps: | ||
| - uses: actions/checkout@v4 | ||
| - uses: actions/checkout@v6 | ||
| with: | ||
| fetch-depth: 0 | ||
|
|
||
| - name: Set up QEMU | ||
| uses: docker/setup-qemu-action@v3 | ||
| uses: docker/setup-qemu-action@ce360397dd3f832beb865e1373c09c0e9f86d70a | ||
|
Comment on lines
+61
to
+66
|
||
|
|
||
| - name: Set up Docker Buildx | ||
| uses: docker/setup-buildx-action@v3 | ||
| uses: docker/setup-buildx-action@4d04d5d9486b7bd6fa91e7baf45bbb4f8b9deedd | ||
|
|
||
| - name: Extract metadata | ||
| id: meta | ||
| uses: docker/metadata-action@v5 | ||
| uses: docker/metadata-action@030e881283bb7a6894de51c315a6bfe6a94e05cf | ||
| with: | ||
| images: ${{ env.TAG_NAME }} | ||
| tags: | | ||
|
|
@@ -86,14 +86,14 @@ jobs: | |
| DOCKER_METADATA_ANNOTATIONS_LEVELS: manifest,index | ||
|
|
||
| - name: Log in to GHCR | ||
| uses: docker/login-action@v3 | ||
| uses: docker/login-action@b45d80f862d83dbcd57f89517bcf500b2ab88fb2 | ||
| with: | ||
| registry: ghcr.io | ||
| username: ${{ github.actor }} | ||
| password: ${{ secrets.GITHUB_TOKEN }} | ||
|
|
||
| - name: Build and push | ||
| uses: docker/build-push-action@v5 | ||
| uses: docker/build-push-action@d08e5c354a6adb9ed34480a06d141179aa583294 | ||
| with: | ||
| context: . | ||
| file: ${{ matrix.dockerfile }} | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These workflow actions are referenced via moving version tags. For supply-chain security and to make CI runs reproducible, pin
actions/checkoutandactions/setup-dotnetto commit SHAs (similar to how other workflows pin third-party actions).