Skip to content
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

Bump docker/build-push-action from 2.5.0 to 3.3.0 #15

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
48 commits
Select commit Hold shift + click to select a range
8a1320d
Fix [b8f575aa23]: eof errorneously flagged with not reported encoding…
Dec 9, 2022
d29e837
Merge 8.7
Dec 9, 2022
ef3f205
More io test-cases. Mostly backported (and modified) from 9.0
Dec 11, 2022
f53d8a0
Merge 8.7
Dec 11, 2022
261798e
Merge 8.6 - change copyright in Windows build to UCal.
apnadkarni Dec 12, 2022
b9f0c36
Merge 8.7 - change copyright in Windows build to UCal.
apnadkarni Dec 12, 2022
cd45017
Clarify what "-strict" means for the utf-8 encoder, making it clear t…
Dec 13, 2022
09ed218
Merge 8.7
Dec 13, 2022
ce64b89
Fix Tcl_BadChannelOption(), new -nocomplainencoding and -strictencodi…
Dec 15, 2022
9b0fa0e
Merge 8.7
Dec 15, 2022
4e8c1e9
Make -strict work the same for UTF-16 as for UTF-8
Dec 15, 2022
95088a8
Add testcase
Dec 16, 2022
edbbf47
Adapt iocmd-8.* testcases to change in previous commit
Dec 16, 2022
19466d6
Merge 8.7
Dec 16, 2022
697ed7d
Merge 8.7
Dec 16, 2022
b9730f6
Follow-up for [084ab982fe]: Use -strict to disable noncharacters. Thi…
Dec 16, 2022
8d39cf9
Merge 8.7
Dec 16, 2022
8aa7832
Addendum to [https://core.tcl-lang.org/tips/doc/trunk/tip/601.md|TIP …
Dec 16, 2022
620179c
Merge 8.7
Dec 16, 2022
8a3317d
merge-mark
Dec 16, 2022
5e2cc5e
merge-mark
Dec 16, 2022
804091f
Merge 8.6
Dec 16, 2022
7e4171c
Merge 8.7
Dec 16, 2022
144435b
Merge 8.6
Dec 16, 2022
f54d4f3
Merge 8.7
Dec 16, 2022
31df27a
MODULE_SCOPE TclLengthOne (in stead of 2 separate static functions do…
Dec 18, 2022
678a52f
When changing the -nocomplainencoding or -strictencoding settings of …
Dec 19, 2022
49f1054
Add two testcases, showing how we can distinguish Invalid Byte sequen…
Dec 19, 2022
53c25d7
Merge 8.7
Dec 19, 2022
2a05601
Remove all checks for noncharacters
Dec 19, 2022
bf36d53
Fix [17a1cb8d6e2a51bd]. From now on, noncharacters are no longer reje…
Dec 20, 2022
38324b2
Merge 8.7
Dec 20, 2022
e87ddcf
Tweaks to dde and registry extension, so they "load" without 3th argu…
Dec 21, 2022
7a26931
Merge 8.7
Dec 21, 2022
d575ca6
Add 'interp' argument to some arith functions, for better error-handling
Dec 21, 2022
6f8c690
Make two more functions static
Dec 21, 2022
72f03c2
Merge 8.7
Dec 21, 2022
fba1424
Merge 8.6
Jan 1, 2023
9a73c13
Merge 8.7
Jan 1, 2023
739e229
Merge 8.6
Jan 6, 2023
221fa5a
Merge 8.6
Jan 6, 2023
572e508
Merge 8.7
Jan 6, 2023
023f5cd
Clarify what "-strict" means for the utf-8 encoder, making it clear t…
Dec 13, 2022
5b36063
Remove "unknown" constraint, since it now works
Sep 29, 2022
e8a1a32
Add Europe/Kyiv to tzdata (missing from previous commit)
Aug 23, 2022
3159775
Integrate Mayhem
rnshah9 May 13, 2022
27a3d34
Add package stage
rnshah9 May 17, 2022
cabe71a
Bump docker/build-push-action from 2.5.0 to 3.3.0
dependabot[bot] Jan 16, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
61 changes: 61 additions & 0 deletions .github/workflows/mayhem.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Mayhem
on:
push:
pull_request:
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}

jobs:
build:
permissions: write-all
name: '${{ matrix.os }} shared=${{ matrix.shared }} ${{ matrix.build_type }}'
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [ubuntu-latest]
shared: [false]
build_type: [Release]
include:
- os: ubuntu-latest
triplet: x64-linux

steps:
- uses: actions/checkout@v2
with:
submodules: true

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker image
uses: docker/build-push-action@37abcedcc1da61a57767b7588cb9d03eb57e28b3
with:
context: .
push: true
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}

- name: Start analysis
uses: ForAllSecure/mcode-action@v1
with:
mayhem-token: ${{ secrets.MAYHEM_TOKEN }}
args: --image ${{ steps.meta.outputs.tags }}
sarif-output: sarif

- name: Upload SARIF file(s)
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: sarif
20 changes: 20 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
FROM --platform=linux/amd64 ubuntu:20.04 as builder

RUN apt-get update
RUN DEBIAN_FRONTEND=noninteractive apt-get install -y make gcc

ADD . /repo
WORKDIR /repo/unix
ENV LD_LIBRARY_PATH=/repo/unix
RUN ldconfig
RUN ./configure
RUN make -j8

RUN mkdir -p /deps
RUN ldd /repo/unix/tclsh | tr -s '[:blank:]' '\n' | grep '^/' | xargs -I % sh -c 'cp % /deps;'

FROM ubuntu:20.04 as package

COPY --from=builder /deps /deps
COPY --from=builder /repo/unix/tclsh /repo/unix/tclsh
ENV LD_LIBRARY_PATH=/deps
6 changes: 6 additions & 0 deletions Mayhemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
project: tcl
target: tclsh

cmds:
- cmd: /repo/unix/tclsh /test.tcl
filepath: /test.tcl
11 changes: 6 additions & 5 deletions doc/encoding.n
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,9 @@ converted characters until the first error position. No error condition is raise
In case of no error, the value \fI-1\fR is written to the variable. This option
may not be used together with \fB-nocomplain\fR.
.PP
The \fB-strict\fR option followes more strict rules in conversion. Currently, only
the sequence \fB\\xC0\\x80\fR in \fButf-8\fR encoding is disallowed. Additional rules
may follow.
The \fB-strict\fR option follows more strict rules in conversion. For the \fButf-8\fR
encoder, it disallows the the sequence \fB\\xC0\\x80\fR and noncharacters (which -
otherwise - are just passed through).
.VE "TCL8.7 TIP346, TIP607, TIP601"
.RE
.TP
Expand Down Expand Up @@ -84,8 +84,9 @@ converted bytes until the first error position. No error condition is raised.
In case of no error, the value \fI-1\fR is written to the variable. This option
may not be used together with \fB-nocomplain\fR.
.PP
The \fB-strict\fR option followes more strict rules in conversion. Currently, it has
no effect but may be used in future to add additional encoding checks.
The \fB-strict\fR option follows more strict rules in conversion. For the \fButf-8\fR
encoder, it disallows the the sequence \fB\\xC0\\x80\fR and noncharacters (which -
otherwise - are just passed through).
.VE "TCL8.7 TIP346, TIP607, TIP601"
.RE
.TP
Expand Down
Loading