Skip to content

Commit 33a62f5

Browse files
committed
Enhancement: Update CI workflow with permissions and additional steps for dependency installation and validation
Signed-off-by: Ihor Dvoretskyi <[email protected]>
1 parent 0c9ed6b commit 33a62f5

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,11 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
security-events: write
12+
actions: read
13+
914
jobs:
1015
devcontainer-test:
1116
runs-on: ubuntu-latest
@@ -14,10 +19,15 @@ jobs:
1419
- name: Checkout
1520
uses: actions/checkout@v4
1621

22+
- name: Install missing dependencies
23+
run: sudo apt-get update && sudo apt-get install -y tcl
24+
25+
- name: Validate docker-compose.yml
26+
run: docker-compose -f .devcontainer/docker-compose.yml config
27+
1728
- name: Build and test devcontainer
1829
uses: devcontainers/[email protected]
1930
with:
20-
imageName: ghcr.io/idvoretskyi/dev
2131
runCmd: |
2232
# Test basic tools are available
2333
which docker
@@ -26,8 +36,6 @@ jobs:
2636
which gh
2737
which node
2838
which npm
29-
# Test SSH server setup
30-
ls -la /run/sshd
3139
# Test essential packages
3240
curl --version
3341
jq --version
@@ -55,6 +63,8 @@ jobs:
5563
if: always()
5664
with:
5765
sarif_file: 'trivy-results.sarif'
66+
env:
67+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5868

5969
- name: Generate SBOM
6070
uses: anchore/sbom-action@v0

0 commit comments

Comments
 (0)