diff --git a/.gitallowed b/.gitallowed index e7593cf..462bb67 100644 --- a/.gitallowed +++ b/.gitallowed @@ -1,3 +1,7 @@ token: ?"?\$\{\{\s*secrets\.GITHUB_TOKEN\s*\}\}"? .*\.gitallowed.* id-token: write +def __init__\(self, token: str, owner: str, repo: str +token = os.environ\.get\("GH_TOKEN"\) +self\.token = token +password: \${{ secrets.GITHUB_TOKEN }} diff --git a/.github/workflows/quality-checks.yml b/.github/workflows/quality-checks.yml index 6e961ef..8c41cd7 100644 --- a/.github/workflows/quality-checks.yml +++ b/.github/workflows/quality-checks.yml @@ -193,6 +193,15 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }} + - name: Run build if Makefile target exists + run: | + if grep -qE "^build:" "Makefile"; then + echo "build target exists in Makefile" + make build + else + echo "build target not found in Makefile" + fi + # CloudFormation validation (runs only if templates exist, ~3-5 minutes) cloudformation-validation: runs-on: ubuntu-22.04