Skip to content

Commit 820e5e5

Browse files
Update build_and_scan_image.yml
1 parent 8c20e17 commit 820e5e5

File tree

1 file changed

+11
-11
lines changed

1 file changed

+11
-11
lines changed

.github/workflows/build_and_scan_image.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,13 +6,12 @@ jobs:
66
build:
77
name: Build docker image
88
runs-on: ubuntu-latest
9-
# Configura los permisos para habilitar la autenticación con OIDC
10-
permissions:
11-
id-token: write
12-
contents: read
13-
9+
environment:
10+
# change this to match your GitHub secrets environment
11+
name: plugin-development
1412

1513
steps:
14+
# checkout the repository containing our Dockerfile
1615
- name: Checkout this repository
1716
uses: actions/checkout@v4
1817

@@ -35,10 +34,10 @@ jobs:
3534

3635
# setup your AWS credentials
3736
- name: Configure AWS credentials
38-
uses: aws-actions/configure-aws-credentials@v4
39-
with:
40-
aws-region: "us-east-1"
41-
role-to-assume: "arn:aws:iam::066849108148:role/InspectorRoleForGithub"
37+
uses: aws-actions/configure-aws-credentials@v4
38+
with:
39+
aws-region: "us-east-1"
40+
role-to-assume: "arn:aws:iam::066849108148:role/InspectorRoleForGithub"
4241

4342
- name: Scan built image with Inspector
4443
uses: aws-actions/vulnerability-scan-github-action-for-amazon-inspector@v1
@@ -55,6 +54,7 @@ jobs:
5554

5655
- name: Fail job if vulnerability threshold is exceeded
5756
run: exit ${{ steps.inspector.outputs.vulnerability_threshold_exceeded }}
58-
59-
# add any additional steps for deploying your image
57+
58+
59+
6060

0 commit comments

Comments
 (0)