Skip to content

Commit 602089c

Browse files
committed
update ci with permissions
1 parent 3fb4808 commit 602089c

3 files changed

Lines changed: 8 additions & 9 deletions

File tree

.github/workflows/component-container-image.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
string: ${{ inputs.image-path }}
2929
- name: Login to GitHub Container Registry
3030
uses: docker/login-action@v3
31-
if: ${{ github.event_name == 'release' || (github.event_name == 'push' && github.ref == 'refs/heads/develop') }}
31+
if: ${{ github.event_name == 'release' || github.event_name == 'push' }}
3232
with:
3333
registry: ghcr.io
3434
username: ${{ github.actor }}
@@ -47,6 +47,13 @@ jobs:
4747
context: "{{defaultContext}}:${{ inputs.context }}"
4848
tags: "${{ steps.format.outputs.lowercase }}:develop"
4949
push: true
50+
- name: Build and push (main)
51+
uses: docker/build-push-action@v6
52+
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/main' }}
53+
with:
54+
context: "{{defaultContext}}:${{ inputs.context }}"
55+
tags: "${{ steps.format.outputs.lowercase }}:latest"
56+
push: true
5057
- name: Build and push (release)
5158
uses: docker/build-push-action@v6
5259
if: ${{ github.event_name == 'release' }}

.github/workflows/workflow-java.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,6 @@ on:
1515
release:
1616
types: [created]
1717

18-
permissions:
19-
contents: read
20-
security-events: write
21-
actions: read
2218

2319
jobs:
2420
container-image-build:

file_checker_exec/src/main/java/fr/coriolis/checker/validators/ArgoMetadataFileValidator.java

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,10 +135,6 @@ public boolean validateData(boolean ckNulls, boolean... optionalChecks) throws I
135135
}
136136
// .......do meta-data file specific validations..........
137137

138-
// if (ckNulls) {
139-
// validateStringNulls();
140-
// }
141-
142138
validateDates();
143139

144140
if (this.arFile.fileVersion().trim().compareTo("2.2") <= 0) {

0 commit comments

Comments
 (0)