Skip to content

Commit

Permalink
GitHub Workflows security hardening
Browse files Browse the repository at this point in the history
  • Loading branch information
rurban committed Sep 5, 2022
1 parent 686e166 commit 93c2512
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/codeql-analysis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ on:
schedule:
- cron: '15 4 * * 3'

permissions:
contents: read

jobs:
analyze:
name: Analyze
Expand Down
4 changes: 2 additions & 2 deletions include/dwg_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -6220,7 +6220,7 @@ EXPORT dwg_class *dwg_get_class (const dwg_data *dwg, unsigned int index);
********************************************************************/
/* This is only useful for DXF exports or dwg USE_WRITE support */

/* All BITCODE_T strings are encoded as UTF-8, as with the dynapi.
/* All BITCODE_T/char* input strings are encoded as UTF-8, as with the dynapi.
Most names are copied, since most names are considered to be constant.
If not, you need to free them by yourself.
Expand Down Expand Up @@ -6472,7 +6472,7 @@ EXPORT Dwg_Entity_MTEXT*
dwg_add_MTEXT (Dwg_Object_BLOCK_HEADER *restrict blkhdr,
const dwg_point_3d *restrict ins_pt,
const double rect_width,
const char* restrict text_value) __nonnull_all;
const char* restrict text_value /*UTF-8*/) __nonnull_all;
/* Experimental. Does not work yet properly */
EXPORT Dwg_Entity_LEADER*
dwg_add_LEADER (Dwg_Object_BLOCK_HEADER *restrict blkhdr,
Expand Down

0 comments on commit 93c2512

Please # to comment.